TPIE

2362a60
tpie::array_iter_base< TT, forward > Class Template Reference

Shared implementation of array iterators. More...

#include <tpie/array.h>

Inherits iterator_facade< array_iter_base< TT, forward >, TT, boost::random_access_traversal_tag >.

Public Member Functions

 array_iter_base ()
 Default constructor. More...
 
template<class U >
 array_iter_base (array_iter_base< U, forward > const &o, typename std::enable_if< std::is_convertible< U *, TT * >::value >::type *=0)
 Copy constructor. More...
 

Friends

template<typename , typename >
class array
 
class boost::iterator_core_access
 
template<typename , bool >
class array_iter_base
 

Detailed Description

template<typename TT, bool forward>
class tpie::array_iter_base< TT, forward >

Shared implementation of array iterators.

Definition at line 41 of file array.h.

Constructor & Destructor Documentation

template<typename TT, bool forward>
tpie::array_iter_base< TT, forward >::array_iter_base ( )
inline

Default constructor.

Definition at line 63 of file array.h.

63 : elm(0) {};
template<typename TT, bool forward>
template<class U >
tpie::array_iter_base< TT, forward >::array_iter_base ( array_iter_base< U, forward > const &  o,
typename std::enable_if< std::is_convertible< U *, TT * >::value >::type *  = 0 
)
inline

Copy constructor.

We use boost::enable_if to allow copying an iterator with a more specific item_type to an iterator with a more general item_type.

Definition at line 71 of file array.h.

74  : elm(o.elm) {}

The documentation for this class was generated from the following file: