Aim: Checks whether type T has a nested type called 'Category' or not. NB: from en.wikipedia.org/wiki/Substitution_failure_is_not_an_error NB: to avoid various compiler issues, we use BOOST_STATIC_CONSTANT according to http://www.boost.org/development/int_const_guidelines.html.
More...
#include <DGtal/base/ContainerTraits.h>
|
typedef char | yes[1] |
|
typedef char | no[2] |
|
|
template<typename C > |
static yes & | test (typename C::Category *) |
|
template<typename C > |
static no & | test (...) |
|
template<typename T>
struct DGtal::detail::HasNestedTypeCategory< T >
Aim: Checks whether type T has a nested type called 'Category' or not. NB: from en.wikipedia.org/wiki/Substitution_failure_is_not_an_error NB: to avoid various compiler issues, we use BOOST_STATIC_CONSTANT according to http://www.boost.org/development/int_const_guidelines.html.
Description of template class 'HasNestedTypeCategory'
- Template Parameters
-
Definition at line 223 of file ContainerTraits.h.
◆ no
◆ yes
◆ BOOST_STATIC_CONSTANT()
◆ test() [1/2]
template<typename T >
template<typename C >
◆ test() [2/2]
template<typename T >
template<typename C >
The documentation for this struct was generated from the following file: