iteratorReturnsConst< Container > Struct Template Reference

Define a nested constant, value, which is true if the specified Container type has an iterator which returns a const version of Container::value_type. Set for example has no non-const iterator. If std::set is the Container passed in then the value will be true. It will be false for most normal containers. More...

#include <foreach.h>

List of all members.

Public Types

enum  c { value }
typedef Container::iterator Iterator

Static Public Member Functions

template<class V >
static int is_const_tester (V &)
template<class U >
static char is_const_tester (const U &)

Static Public Attributes

static Iterator it

Detailed Description

template<class Container>
struct cxxtls::foreach_helpers::iteratorReturnsConst< Container >

Define a nested constant, value, which is true if the specified Container type has an iterator which returns a const version of Container::value_type. Set for example has no non-const iterator. If std::set is the Container passed in then the value will be true. It will be false for most normal containers.

Definition at line 17 of file foreach.h.


Member Typedef Documentation

Definition at line 29 of file foreach.h.


Member Enumeration Documentation

enum c
Enumerator:
value 

Definition at line 39 of file foreach.h.


Member Function Documentation

static int is_const_tester ( V &   )  [static]
static char is_const_tester ( const U &   )  [static]

Member Data Documentation

Iterator it [static]

Definition at line 37 of file foreach.h.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:58:54 2012 for CXXUtilities by  doxygen 1.6.3