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

Member Function Documentation

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
template<typename T >
template<typename T2 >
static std::false_type container_traits< T >::test_comparable (   ...)
static
template<typename T >
template<typename T2 >
static std::true_type container_traits< T >::test_pair ( typename T2::first_type *  ,
typename T2::second_type *   
)
static
template<typename T >
template<typename T2 >
static std::false_type container_traits< T >::test_pair (   ...)
static
template<typename T >
template<typename T2 >
static std::true_type container_traits< T >::test_value ( typename T2::value_type *  )
static
template<typename T >
template<typename T2 >
static std::false_type container_traits< T >::test_value (   ...)
static

Member Data Documentation

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

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

Definition at line 33 of file stl_bind.h.

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

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


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:47