Static Public Member Functions | Static Public Attributes | List of all members
container_traits< T > Struct Template Reference

#include <stl_bind.h>

Static Public Member Functions

template<typename T2 >
static std::false_type test_comparable (...)
 
template<typename T2 >
static std::true_type test_comparable (decltype(std::declval< const T2 & >()==std::declval< const T2 & >()) *)
 
template<typename T2 >
static std::false_type test_pair (...)
 
template<typename T2 >
static std::true_type test_pair (typename T2::first_type *, typename T2::second_type *)
 
template<typename T2 >
static std::false_type test_value (...)
 
template<typename T2 >
static std::true_type test_value (typename T2::value_type *)
 

Static Public Attributes

static constexpr const bool is_comparable = std::is_same<std::true_type, decltype(test_comparable<T>(nullptr))>::value
 
static constexpr const bool is_element = !is_pair && !is_vector
 
static constexpr const bool is_pair = std::is_same<std::true_type, decltype(test_pair<T>(nullptr, nullptr))>::value
 
static constexpr const bool is_vector = std::is_same<std::true_type, decltype(test_value<T>(nullptr))>::value
 

Detailed Description

template<typename T>
struct container_traits< T >

Definition at line 26 of file stl_bind.h.

Member Function Documentation

◆ test_comparable() [1/2]

template<typename T >
template<typename T2 >
static std::false_type container_traits< T >::test_comparable (   ...)
static

◆ test_comparable() [2/2]

template<typename T >
template<typename T2 >
static std::true_type container_traits< T >::test_comparable ( decltype(std::declval< const T2 & >()==std::declval< const T2 & >()) *  )
static

◆ test_pair() [1/2]

template<typename T >
template<typename T2 >
static std::false_type container_traits< T >::test_pair (   ...)
static

◆ test_pair() [2/2]

template<typename T >
template<typename T2 >
static std::true_type container_traits< T >::test_pair ( typename T2::first_type *  ,
typename T2::second_type *   
)
static

◆ test_value() [1/2]

template<typename T >
template<typename T2 >
static std::false_type container_traits< T >::test_value (   ...)
static

◆ test_value() [2/2]

template<typename T >
template<typename T2 >
static std::true_type container_traits< T >::test_value ( typename T2::value_type *  )
static

Member Data Documentation

◆ is_comparable

template<typename T >
constexpr const bool container_traits< T >::is_comparable = std::is_same<std::true_type, decltype(test_comparable<T>(nullptr))>::value
staticconstexpr

Definition at line 42 of file stl_bind.h.

◆ is_element

template<typename T >
constexpr const bool container_traits< T >::is_element = !is_pair && !is_vector
staticconstexpr

Definition at line 47 of file stl_bind.h.

◆ is_pair

template<typename T >
constexpr const bool container_traits< T >::is_pair = std::is_same<std::true_type, decltype(test_pair<T>(nullptr, nullptr))>::value
staticconstexpr

Definition at line 44 of file stl_bind.h.

◆ is_vector

template<typename T >
constexpr const bool container_traits< T >::is_vector = std::is_same<std::true_type, decltype(test_value<T>(nullptr))>::value
staticconstexpr

Definition at line 46 of file stl_bind.h.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:10:00