NDDEM
Static Public Member Functions | Static Public Attributes | List of all members
cereal::traits::is_default_constructible< T > Struct Template Reference

Determines whether the class T can be default constructed by cereal::access. More...

#include <traits.hpp>

Static Public Member Functions

template<class TT >
static auto test (int) -> decltype(cereal::access::construct< TT >(), yes())
 
template<class >
static no test (...)
 

Static Public Attributes

static const bool value = std::is_same<decltype(test<T>(0)), yes>::value
 

Detailed Description

template<class T>
struct cereal::traits::is_default_constructible< T >

Determines whether the class T can be default constructed by cereal::access.

Member Function Documentation

◆ test() [1/2]

template<class T >
template<class >
static no cereal::traits::is_default_constructible< T >::test (   ...)
static

◆ test() [2/2]

template<class T >
template<class TT >
static auto cereal::traits::is_default_constructible< T >::test ( int  ) -> decltype(cereal::access::construct< TT >(), yes())
static

Member Data Documentation

◆ value

template<class T >
const bool cereal::traits::is_default_constructible< T >::value = std::is_same<decltype(test<T>(0)), yes>::value
static

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