Serialbox  2.2.0
Data serialization library and tools for C/C++, Python and Fortran
serialbox::IsSupported< T > Struct Template Reference

Check if the Type is recognized by serialbox i.e maps to a type-id in TypeID. More...

#include <Type.h>

Public Types

using SupportedTypesSet = boost::mpl::set< bool, int, std::int64_t, float, double, std::string >
 Set of supported types.
 

Static Public Attributes

static constexpr bool value = boost::mpl::has_key<SupportedTypesSet, T>::type::value
 True iff the type is supported.
 

Detailed Description

template<class T>
struct serialbox::IsSupported< T >

Check if the Type is recognized by serialbox i.e maps to a type-id in TypeID.

Supported Types:

  • bool
  • int (32-bit)
  • int (64-bit)
  • float
  • double
  • string (std::string)
See also
TypeID

Definition at line 88 of file Type.h.


The documentation for this struct was generated from the following file: