CPP06 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
ScalarConverter.hpp
[詳解]
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ScalarConverter.hpp :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2025/07/22 14:22:35 by kamitsui #+# #+# */
9/* Updated: 2025/07/23 01:18:01 by kamitsui ### ########.fr */
10/* */
11/* ************************************************************************** */
12
18#ifndef SCALARCONVERTER_HPP
19#define SCALARCONVERTER_HPP
20
21#include <string>
22
30 public:
31 static void convert(const std::string &literal);
32
33 private:
34 // Private members to prevent instantiation.
37 ScalarConverter &operator=(const ScalarConverter &rhs);
39};
40
41#endif
A static class to convert string literals to scalar types.
static void convert(const std::string &literal)
The main conversion method.