DGtal
0.9.2
|
#include <DGtal/base/ContainerTraits.h>
Public Types | |
typedef char | yes[1] |
typedef char | no[2] |
Public Member Functions | |
BOOST_STATIC_CONSTANT (bool, value=sizeof(test< T >(0))==sizeof(yes)) | |
Static Public Member Functions | |
template<typename C > | |
static yes & | test (typename C::Category *) |
template<typename C > | |
static no & | test (...) |
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'
T | any type. |
Definition at line 223 of file ContainerTraits.h.
typedef char DGtal::detail::HasNestedTypeCategory< T >::no[2] |
Definition at line 226 of file ContainerTraits.h.
typedef char DGtal::detail::HasNestedTypeCategory< T >::yes[1] |
Definition at line 225 of file ContainerTraits.h.
DGtal::detail::HasNestedTypeCategory< T >::BOOST_STATIC_CONSTANT | ( | bool | , |
value | = sizeof(test< T >(0))==sizeof(yes) |
||
) |
|
static |
|
static |