mlpack  2.2.5
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
HasSerialize< T > Struct Template Reference

Classes

struct  check
 

Public Types

typedef char no[2]
 
typedef char yes[1]
 

Static Public Member Functions

template<typename U >
static yeschk (check< U, typename boost::enable_if< boost::is_class< U >>::type *, typename boost::enable_if< HasSerializeFunction< U >>::type *> *)
 
template<typename >
static nochk (...)
 

Static Public Attributes

static const bool value = (sizeof(chk<T>(0)) == sizeof(yes))
 

Detailed Description

template<typename T>
struct mlpack::data::HasSerialize< T >

Definition at line 45 of file serialization_shim.hpp.

Member Typedef Documentation

◆ no

typedef char no[2]

Definition at line 49 of file serialization_shim.hpp.

◆ yes

typedef char yes[1]

Definition at line 48 of file serialization_shim.hpp.

Member Function Documentation

◆ chk() [1/2]

static yes& chk ( check< U, typename boost::enable_if< boost::is_class< U >>::type *, typename boost::enable_if< HasSerializeFunction< U >>::type *> *  )
static

◆ chk() [2/2]

static no& chk (   ...)
static

Member Data Documentation

◆ value

const bool value = (sizeof(chk<T>(0)) == sizeof(yes))
static

Definition at line 57 of file serialization_shim.hpp.


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