1 #ifndef TIL_STDITERATOR_H 2 #define TIL_STDITERATOR_H 5 #include <boost/type_traits.hpp> 11 template <
typename T,
bool b >
12 struct stdit {
typedef typename T::iterator
type; };
14 template <
typename T >
15 struct stdit<T, true> {
typedef typename T::const_iterator
type; };
19 template <
typename T,
typename T2 = T >
Select T2::const_iterator T is const, T2::iterator otherwise.
Technical implementation detail for stditerator.
Belongs to package Box Do not include directly, include til/Box.h instead.