Minsky
minsky::has_empty< T > Struct Template Reference

#include <optional.h>

Collaboration diagram for minsky::has_empty< T >:
Collaboration graph

Static Public Member Functions

template<class X >
static auto check (X x) -> decltype(x.empty())
 
static std::false_type check (...)
 

Static Public Attributes

static constexpr const bool value = std::is_integral<decltype(check(std::declval<T>()))>::value
 

Detailed Description

template<class T>
struct minsky::has_empty< T >

Definition at line 28 of file optional.h.

Member Function Documentation

◆ check() [1/2]

template<class T >
template<class X >
static auto minsky::has_empty< T >::check ( x) -> decltype(x.empty())
static

◆ check() [2/2]

template<class T >
static std::false_type minsky::has_empty< T >::check (   ...)
static

Member Data Documentation

◆ value

template<class T >
constexpr const bool minsky::has_empty< T >::value = std::is_integral<decltype(check(std::declval<T>()))>::value
static

Definition at line 34 of file optional.h.


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