19 namespace Data_Types {
33 template<> constexpr
bool Is_Valid_Data_Type<std::string>() {
return true; }
36 if (type_id ==
typeid(uint64_t))
return true;
37 else if (type_id ==
typeid(int64_t))
return true;
38 else if (type_id ==
typeid(uint32_t))
return true;
39 else if (type_id ==
typeid(int32_t))
return true;
40 else if (type_id ==
typeid(uint16_t))
return true;
41 else if (type_id ==
typeid(int16_t))
return true;
42 else if (type_id ==
typeid(uint8_t))
return true;
43 else if (type_id ==
typeid(int8_t))
return true;
44 else if (type_id ==
typeid(
float))
return true;
45 else if (type_id ==
typeid(
double))
return true;
46 else if (type_id ==
typeid(
char))
return true;
47 else if (type_id ==
typeid(std::string))
return true;
53 template <
class T>
const std::type_index
getType() {
return typeid(T); }
constexpr bool Is_Valid_Data_Type< int16_t >()
constexpr bool Is_Valid_Data_Type< int64_t >()
bool Is_Valid_Data_Type(const std::type_info &type_id)
Is the type (type_id) a type supported for I/O by this library?
constexpr bool Is_Valid_Data_Type< double >()
constexpr bool Is_Valid_Data_Type< uint64_t >()
constexpr bool Is_Valid_Data_Type< uint16_t >()
constexpr bool Is_Valid_Data_Type< uint8_t >()
constexpr bool Is_Valid_Data_Type< int8_t >()
constexpr bool Is_Valid_Data_Type< int32_t >()
const std::type_index getType()
constexpr bool Is_Valid_Data_Type< float >()
constexpr bool Is_Valid_Data_Type< uint32_t >()
constexpr bool Is_Valid_Data_Type< char >()