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

#include <has_serialize.hpp>

Classes

struct  check
 

Public Types

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

Static Public Member Functions

template<typename >
static nochk (...)
 
template<typename U >
static yeschk (check< U, typename std::enable_if_t< std::is_class< U >::value > *, typename std::enable_if_t< HasSerializeFunction< U >::value > * > *)
 

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 has_serialize.hpp.

Member Typedef Documentation

◆ no

typedef char no[2]

Definition at line 49 of file has_serialize.hpp.

◆ yes

typedef char yes[1]

Definition at line 48 of file has_serialize.hpp.

Member Function Documentation

◆ chk() [1/2]

static no & chk (   ...)
static

◆ chk() [2/2]

static yes & chk ( check< U, typename std::enable_if_t< std::is_class< U >::value > *, typename std::enable_if_t< HasSerializeFunction< U >::value > * > *  )
static

Member Data Documentation

◆ value

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

Definition at line 57 of file has_serialize.hpp.


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