CRTP base class for adapting an iterator to a different type.
More...
#include <iterator.h>
|
using | difference_type = DifferenceTypeT |
|
|
DerivedT & | operator+= (difference_type n) |
|
DerivedT & | operator-= (difference_type n) |
|
difference_type | operator- (const DerivedT &RHS) const |
|
DerivedT & | operator++ () |
|
DerivedT & | operator-- () |
|
bool | operator== (const DerivedT &RHS) const |
|
bool | operator< (const DerivedT &RHS) const |
|
ReferenceT | operator* () const |
|
DerivedT | operator+ (DifferenceTypeT n) const |
|
DerivedT | operator- (DifferenceTypeT n) const |
|
DerivedT & | operator++ () |
|
DerivedT | operator++ (int) |
|
DerivedT & | operator-- () |
|
DerivedT | operator-- (int) |
|
bool | operator!= (const DerivedT &RHS) const |
|
bool | operator> (const DerivedT &RHS) const |
|
bool | operator<= (const DerivedT &RHS) const |
|
bool | operator>= (const DerivedT &RHS) const |
|
PointerT | operator-> () |
|
PointerT | operator-> () const |
|
ReferenceProxy | operator[] (DifferenceTypeT n) |
|
ReferenceProxy | operator[] (DifferenceTypeT n) const |
|
|
| iterator_adaptor_base (WrappedIteratorT u) |
|
const WrappedIteratorT & | wrapped () const |
|
|
enum | { IsRandomAccess,
IsBidirectional
} |
|
template<typename DerivedT, typename WrappedIteratorT, typename IteratorCategoryT = typename std::iterator_traits<WrappedIteratorT>::iterator_category, typename T = typename std::iterator_traits<WrappedIteratorT>::value_type, typename DifferenceTypeT = typename std::iterator_traits<WrappedIteratorT>::difference_type, typename PointerT = typename std::conditional< std::is_same<T, typename std::iterator_traits< WrappedIteratorT>::value_type>::value, typename std::iterator_traits<WrappedIteratorT>::pointer, T *>::type, typename ReferenceT = typename std::conditional< std::is_same<T, typename std::iterator_traits< WrappedIteratorT>::value_type>::value, typename std::iterator_traits<WrappedIteratorT>::reference, T &>::type, typename WrappedTraitsT = std::iterator_traits<WrappedIteratorT>>
class wpi::iterator_adaptor_base< DerivedT, WrappedIteratorT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT, WrappedTraitsT >
CRTP base class for adapting an iterator to a different type.
This class can be used through CRTP to adapt one iterator into another. Typically this is done through providing in the derived class a custom operator*
implementation. Other methods can be overridden as well.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/WPILib/WPILib - Development/arm/wpiutil/src/main/native/include/wpi/iterator.h