Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::is_iterator< T > Struct Template Reference

Data structure to check whether given data type is an iterator. More...

#include <JClass.hh>

Public Types

typedef void * buffer[2]
 

Static Public Member Functions

static T make ()
 
static buffertest (...)
 any type
 
template<class R >
static R::iterator_category * test (R)
 iterator
 
template<class R >
static void * test (R *)
 pointer
 

Static Public Attributes

static const bool value = sizeof(test(make())) == sizeof(void *)
 

Detailed Description

template<class T>
struct JLANG::is_iterator< T >

Data structure to check whether given data type is an iterator.

Definition at line 62 of file JClass.hh.

Member Typedef Documentation

◆ buffer

template<class T >
void* JLANG::is_iterator< T >::buffer[2]

Definition at line 66 of file JClass.hh.

Member Function Documentation

◆ make()

template<class T >
static T JLANG::is_iterator< T >::make ( )
static

◆ test() [1/3]

template<class T >
static buffer & JLANG::is_iterator< T >::test ( ...)
static

any type

◆ test() [2/3]

template<class T >
template<class R >
static R::iterator_category * JLANG::is_iterator< T >::test ( R )
static

iterator

◆ test() [3/3]

template<class T >
template<class R >
static void * JLANG::is_iterator< T >::test ( R * )
static

pointer

Member Data Documentation

◆ value

template<class T >
const bool JLANG::is_iterator< T >::value = sizeof(test(make())) == sizeof(void *)
static

Definition at line 72 of file JClass.hh.


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