Classes

struct  check
 

Public Types

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

Static Public Member Functions

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

Static Public Attributes

static const bool value = (sizeof(chk(0)) == sizeof(yes))
 

Detailed Description


template
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 yes& chk ( check< U, typename std::enable_if_t< std::is_class< U >::value > *, typename std::enable_if_t< HasSerializeFunction< U >::value > *> *  )
static

◆ chk() [2/2]

static no& chk (   ...)
static

Member Data Documentation

◆ value

const bool value = (sizeof(chk(0)) == sizeof(yes))
static

Definition at line 57 of file has_serialize.hpp.


The documentation for this struct was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.4.2/src/mlpack/core/data/has_serialize.hpp