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::true_type test_comparable (decltype(std::declval< const T2 &>()==std::declval< const T2 &>()) *)
 
template<typename T2 >
static std::false_type test_comparable (...)
 
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_pair (...)
 
template<typename T2 >
static std::true_type test_value (typename T2::value_type *)
 
template<typename T2 >
static std::false_type test_value (...)
 

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 23 of file stl_bind.h.

Member Function Documentation

◆ test_comparable() [1/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_comparable() [2/2]

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

◆ test_pair() [1/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_pair() [2/2]

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

◆ test_value() [1/2]

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

◆ test_value() [2/2]

template<typename T >
template<typename T2 >
static std::false_type container_traits< T >::test_value (   ...)
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
static

Definition at line 39 of file stl_bind.h.

◆ is_element

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

Definition at line 44 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
static

Definition at line 41 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
static

Definition at line 43 of file stl_bind.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:02