Aim: Checks whether type IC has a nested type called 'Type' 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/IteratorCirculatorTraits.h>
|
typedef char | yes[1] |
|
typedef char | no[2] |
|
|
template<typename C > |
static yes & | test (typename C::Type *) |
|
template<typename C > |
static no & | test (...) |
|
template<typename IC>
struct DGtal::detail::HasNestedTypeType< IC >
Aim: Checks whether type IC has a nested type called 'Type' 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 'HasNestedTypeType'
- Template Parameters
-
IC | any iterator or circulator |
Definition at line 76 of file IteratorCirculatorTraits.h.
◆ no
◆ yes
◆ BOOST_STATIC_CONSTANT()
◆ test() [1/2]
template<typename IC >
template<typename C >
◆ test() [2/2]
template<typename IC >
template<typename C >
The documentation for this struct was generated from the following file: