Gromacs  2021.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Static Public Attributes
gmx::IsSerializableType< T > Struct Template Reference

#include <gromacs/mdtypes/checkpointdata.h>


template<typename T>
struct gmx::IsSerializableType< T >

Struct allowing to check if data is serializable through the KeyValueTree serializer.

This list of types is copied from ValueSerializer::initSerializers() Having this here allows us to catch errors at compile time instead of having cryptic runtime errors

Static Public Attributes

static bool const value

Member Data Documentation

template<typename T >
bool const gmx::IsSerializableType< T >::value
Initial value:
= std::is_same<T, std::string>::value || std::is_same<T, bool>::value
|| std::is_same<T, int>::value || std::is_same<T, int64_t>::value
|| std::is_same<T, float>::value || std::is_same<T, double>::value

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