DGtal
0.9.3
|
#include <DGtal/base/IteratorCirculatorTraits.h>
Public Types | |
typedef char | yes[1] |
typedef char | no[2] |
Public Member Functions | |
BOOST_STATIC_CONSTANT (bool, value=sizeof(test< IC >(0))==sizeof(yes)) | |
Static Public Member Functions | |
template<typename C > | |
static yes & | test (typename C::Type *) |
template<typename C > | |
static no & | test (...) |
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'
IC | any iterator or circulator |
Definition at line 76 of file IteratorCirculatorTraits.h.
typedef char DGtal::detail::HasNestedTypeType< IC >::no[2] |
Definition at line 79 of file IteratorCirculatorTraits.h.
typedef char DGtal::detail::HasNestedTypeType< IC >::yes[1] |
Definition at line 78 of file IteratorCirculatorTraits.h.
DGtal::detail::HasNestedTypeType< IC >::BOOST_STATIC_CONSTANT | ( | bool | , |
value | = sizeof(test< IC >(0))==sizeof(yes) |
||
) |
|
static |
|
static |