mn::reverse_iterator< TIterator > Class Template Reference

#include <mn_iterator.hpp>

Public Types

using value_type = typename iterator_traits< TIterator >::value_type
 
using difference_type = typename iterator_traits< TIterator >::difference_type
 
using pointer = typename iterator_traits< TIterator >::pointer
 
using reference = typename iterator_traits< TIterator >::reference
 
using iterator_category = typename iterator_traits< TIterator >::iterator_category
 
using iterator = TIterator
 
using self_type = reverse_iterator< TIterator >
 

Public Member Functions

constexpr reverse_iterator ()
 
constexpr reverse_iterator (TIterator iter)
 
constexpr iterator base () const
 
constexpr reference operator* () const
 
constexpr pointer operator-> () const
 
constexpr self_typeoperator++ ()
 
constexpr self_typeoperator-- ()
 
constexpr self_type operator++ (int)
 
constexpr self_type operator-- (int)
 
constexpr self_typeoperator+= (size_t n)
 
constexpr self_typeoperator-= (size_t n)
 
constexpr self_type operator+ (size_t n) const
 
constexpr self_type operator- (size_t n) const
 
constexpr bool operator== (const self_type &iter) const
 
constexpr bool operator< (const self_type &iter) const
 
constexpr reference operator[] (size_t n) const
 
constexpr difference_type operator- (const self_type &i) const
 

Protected Attributes

iterator m_itter
 

Member Typedef Documentation

◆ difference_type

template<typename TIterator >
using mn::reverse_iterator< TIterator >::difference_type = typename iterator_traits<TIterator>::difference_type

◆ iterator

template<typename TIterator >
using mn::reverse_iterator< TIterator >::iterator = TIterator

◆ iterator_category

template<typename TIterator >
using mn::reverse_iterator< TIterator >::iterator_category = typename iterator_traits<TIterator>::iterator_category

◆ pointer

template<typename TIterator >
using mn::reverse_iterator< TIterator >::pointer = typename iterator_traits<TIterator>::pointer

◆ reference

template<typename TIterator >
using mn::reverse_iterator< TIterator >::reference = typename iterator_traits<TIterator>::reference

◆ self_type

template<typename TIterator >
using mn::reverse_iterator< TIterator >::self_type = reverse_iterator<TIterator>

◆ value_type

template<typename TIterator >
using mn::reverse_iterator< TIterator >::value_type = typename iterator_traits<TIterator>::value_type

Constructor & Destructor Documentation

◆ reverse_iterator() [1/2]

template<typename TIterator >
constexpr mn::reverse_iterator< TIterator >::reverse_iterator ( )
inlineconstexpr

◆ reverse_iterator() [2/2]

template<typename TIterator >
constexpr mn::reverse_iterator< TIterator >::reverse_iterator ( TIterator  iter)
inlineexplicitconstexpr

Member Function Documentation

◆ base()

template<typename TIterator >
constexpr iterator mn::reverse_iterator< TIterator >::base ( ) const
inlineconstexpr

◆ operator*()

template<typename TIterator >
constexpr reference mn::reverse_iterator< TIterator >::operator* ( ) const
inlineconstexpr

◆ operator+()

template<typename TIterator >
constexpr self_type mn::reverse_iterator< TIterator >::operator+ ( size_t  n) const
inlineconstexpr

◆ operator++() [1/2]

template<typename TIterator >
constexpr self_type& mn::reverse_iterator< TIterator >::operator++ ( )
inlineconstexpr

◆ operator++() [2/2]

template<typename TIterator >
constexpr self_type mn::reverse_iterator< TIterator >::operator++ ( int  )
inlineconstexpr

◆ operator+=()

template<typename TIterator >
constexpr self_type& mn::reverse_iterator< TIterator >::operator+= ( size_t  n)
inlineconstexpr

◆ operator-() [1/2]

template<typename TIterator >
constexpr difference_type mn::reverse_iterator< TIterator >::operator- ( const self_type i) const
inlineconstexpr

◆ operator-() [2/2]

template<typename TIterator >
constexpr self_type mn::reverse_iterator< TIterator >::operator- ( size_t  n) const
inlineconstexpr

◆ operator--() [1/2]

template<typename TIterator >
constexpr self_type& mn::reverse_iterator< TIterator >::operator-- ( )
inlineconstexpr

◆ operator--() [2/2]

template<typename TIterator >
constexpr self_type mn::reverse_iterator< TIterator >::operator-- ( int  )
inlineconstexpr

◆ operator-=()

template<typename TIterator >
constexpr self_type& mn::reverse_iterator< TIterator >::operator-= ( size_t  n)
inlineconstexpr

◆ operator->()

template<typename TIterator >
constexpr pointer mn::reverse_iterator< TIterator >::operator-> ( ) const
inlineconstexpr

◆ operator<()

template<typename TIterator >
constexpr bool mn::reverse_iterator< TIterator >::operator< ( const self_type iter) const
inlineconstexpr

◆ operator==()

template<typename TIterator >
constexpr bool mn::reverse_iterator< TIterator >::operator== ( const self_type iter) const
inlineconstexpr

◆ operator[]()

template<typename TIterator >
constexpr reference mn::reverse_iterator< TIterator >::operator[] ( size_t  n) const
inlineconstexpr

Member Data Documentation

◆ m_itter

template<typename TIterator >
iterator mn::reverse_iterator< TIterator >::m_itter
protected

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