IteratorReferent< Container > Struct Template Reference

Given a container as a template parameter, determine the return data type of its "iterator" -- particularly the constness thereof. Define a nested member typedef, type, which maps to the return value type of. More...

#include <foreach.h>

List of all members.

Public Types

typedef EvalTypeIf
< iteratorReturnsConst
< Container >::value, typename
Container::value_type, const
typename Container::value_type >
::type 
type

Detailed Description

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

Given a container as a template parameter, determine the return data type of its "iterator" -- particularly the constness thereof. Define a nested member typedef, type, which maps to the return value type of.

Container::iterator::operator*()

This template handles non-array types and there are specializations for the array types, below.

Definition at line 75 of file foreach.h.


Member Typedef Documentation

typedef EvalTypeIf< iteratorReturnsConst<Container>::value, typename Container::value_type, const typename Container::value_type >::type type

Definition at line 92 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