A Discrete-Event Network Simulator
ns3::has_const_iterator< T > Struct Template Reference

Compile time check if type T has const iterator. More...

#include "attribute-container-accessor-helper.h"


struct  no

Public Types

typedef T type

Static Public Attributes

static const bool value = sizeof(test<T>(0)) == sizeof(yes)

Private Types

typedef char yes

Static Private Member Functions

template<typename C >
static no test (...)
template<typename C >
static yes test (typename C::const_iterator *)

Detailed Description

template<typename T>
struct ns3::has_const_iterator< T >

Compile time check if type T has const iterator.

Definition at line 38 of file attribute-container-accessor-helper.h.

Member Typedef Documentation

◆ type

template<typename T >
typedef T ns3::has_const_iterator< T >::type

Definition at line 48 of file attribute-container-accessor-helper.h.

◆ yes

template<typename T >
typedef char ns3::has_const_iterator< T >::yes

Definition at line 41 of file attribute-container-accessor-helper.h.

Member Function Documentation

◆ test() [1/2]

template<typename T >
template<typename C >
static no ns3::has_const_iterator< T >::test (   ...)

◆ test() [2/2]

template<typename T >
template<typename C >
static yes ns3::has_const_iterator< T >::test ( typename C::const_iterator *  )

Member Data Documentation

◆ value

template<typename T >
const bool ns3::has_const_iterator< T >::value = sizeof(test<T>(0)) == sizeof(yes)

Definition at line 47 of file attribute-container-accessor-helper.h.

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