26 #ifndef GALOIS_RUNTIME_EXTRA_TRAITS_H
27 #define GALOIS_RUNTIME_EXTRA_TRAITS_H
29 #include <type_traits>
30 #include <boost/mpl/has_xxx.hpp>
34 #define __is_trivially_copyable(type) __has_trivial_copy(type)
37 #define __is_trivially_copyable(type) std::is_trivially_copyable<type>::value
44 BOOST_MPL_HAS_XXX_TRAIT_DEF(tt_has_serialize)
49 BOOST_MPL_HAS_XXX_TRAIT_DEF(tt_is_copyable)
Indicates if T is serializable.
Definition: ExtraTraits.h:56
Indicates if T has the serialize trait.
Definition: ExtraTraits.h:47
static const bool value
true if T is serializable
Definition: ExtraTraits.h:58
static const bool value
true if T is memory copyable
Definition: ExtraTraits.h:66
Indicates if T is trivially copyable.
Definition: ExtraTraits.h:52
Indicates if T is memory copyable.
Definition: ExtraTraits.h:64