TPIE

11a2c2d
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...
 
TT & operator[] (ptrdiff_t n) const noexcept
 
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
 

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

◆ array_iter_base() [1/2]

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) {};

◆ array_iter_base() [2/2]

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 76 of file array.h.

79  : elm(o.elm) {}

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