ant
A2 ant: class-based analysis framework
ant::std_ext::is_stl_container_like< T > Struct Template Reference

#include <container.h>

Public Types

typedef std::remove_const< T >::type test_type
 

Static Public Member Functions

template<typename A >
static constexpr bool test (A *pt, const A *cpt=nullptr, decltype(pt->begin()) *=nullptr, decltype(pt->end()) *=nullptr, decltype(cpt->begin()) *=nullptr, decltype(cpt->end()) *=nullptr)
 
template<typename A >
static constexpr bool test (...)
 

Static Public Attributes

static constexpr bool value = test<test_type>(nullptr)
 

Member Typedef Documentation

◆ test_type

template<typename T >
typedef std::remove_const<T>::type ant::std_ext::is_stl_container_like< T >::test_type

Member Function Documentation

◆ test() [1/2]

template<typename T >
template<typename A >
static constexpr bool ant::std_ext::is_stl_container_like< T >::test ( A pt,
const A cpt = nullptr,
decltype(pt->begin()) *  = nullptr,
decltype(pt->end()) *  = nullptr,
decltype(cpt->begin()) *  = nullptr,
decltype(cpt->end()) *  = nullptr 
)
inlinestatic

◆ test() [2/2]

template<typename T >
template<typename A >
static constexpr bool ant::std_ext::is_stl_container_like< T >::test (   ...)
inlinestatic

Member Data Documentation

◆ value

template<typename T >
constexpr bool ant::std_ext::is_stl_container_like< T >::value = test<test_type>(nullptr)
static

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