MDBX Containers
Loading...
Searching...
No Matches
mdbxc::has_value_type< T > Struct Template Reference

Trait indicating that a container defines value_type. More...

#include <utils.hpp>

Static Public Attributes

static const bool value = decltype(check<T>(0))::value
 

Static Private Member Functions

template<typename U>
static auto check (U *) -> decltype(typename U::value_type(), std::true_type())
 
template<typename>
static std::false_type check (...)
 

Detailed Description

template<typename T>
struct mdbxc::has_value_type< T >

Trait indicating that a container defines value_type.

Template Parameters
TContainer type.

Definition at line 55 of file utils.hpp.

Member Function Documentation

◆ check() [1/2]

template<typename T>
template<typename>
static std::false_type mdbxc::has_value_type< T >::check ( ...)
staticprivate

◆ check() [2/2]

template<typename T>
template<typename U>
static auto mdbxc::has_value_type< T >::check ( U * ) -> decltype(typename U::value_type(), std::true_type())
staticprivate

Member Data Documentation

◆ value

template<typename T>
const bool mdbxc::has_value_type< T >::value = decltype(check<T>(0))::value
static

Definition at line 62 of file utils.hpp.


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