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 std::enable_if_t< std::is_class< U >::value > *, typename std::enable_if_t< HasSerializeFunction< U >::value > *> *)
 
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 47 of file has_serialize.hpp.

Member Typedef Documentation

◆ no

typedef char no[2]

Definition at line 51 of file has_serialize.hpp.

◆ yes

typedef char yes[1]

Definition at line 50 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<T>(0)) == sizeof(yes))
static

Definition at line 59 of file has_serialize.hpp.


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