13 #ifndef MLPACK_CORE_UTIL_HAS_SERIALIZE_HPP 14 #define MLPACK_CORE_UTIL_HAS_SERIALIZE_HPP 17 #include <cereal/archives/xml.hpp> 18 #include <cereal/cereal.hpp> 20 #include <type_traits> 36 const uint32_t version);
40 const uint32_t version);
42 static const bool value = HasSerializeCheck<T, NonStaticSerialize>::value ||
43 HasSerializeCheck<T, StaticSerialize>::value;
52 template<
typename U,
typename V,
typename W>
struct check;
53 template<
typename U>
static yes& chk(
57 template<
typename >
static no& chk(...);
59 static const bool value = (
sizeof(chk<T>(0)) ==
sizeof(yes));
typename enable_if< B, T >::type enable_if_t
Linear algebra utility functions, generally performed on matrices or vectors.
void(C::*)(cereal::XMLOutputArchive &, const uint32_t version) NonStaticSerialize
void(*)(cereal::XMLOutputArchive &, const uint32_t version) StaticSerialize
HAS_EXACT_METHOD_FORM(serialize, HasSerializeCheck)