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>
Public Types | |
typedef EvalTypeIf < iteratorReturnsConst < Container >::value, typename Container::value_type, const typename Container::value_type > ::type | type |
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.
typedef EvalTypeIf< iteratorReturnsConst<Container>::value, typename Container::value_type, const typename Container::value_type >::type type |