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>
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 |
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.
typedef Container::iterator Iterator |
static int is_const_tester | ( | V & | ) | [static] |
static char is_const_tester | ( | const U & | ) | [static] |