Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ext::reverser< T > Class Template Reference

Adaptor class to change begin and end behavior for reverse begin and reverse end and vise versa. More...

#include <iterator.hpp>

Public Member Functions

 reverser (T &&container)
 Constructor of the adaptor class based on the adapted container. More...
 
auto begin () const
 Begin adaptor method to call rbegin. More...
 
auto end () const
 End adaptor method to call rend. More...
 

Detailed Description

template<class T>
class ext::reverser< T >

Adaptor class to change begin and end behavior for reverse begin and reverse end and vise versa.

Template Parameters
Tthe type of class having rbegin and rend methods

Constructor & Destructor Documentation

◆ reverser()

template<class T >
ext::reverser< T >::reverser ( T &&  container)
inlineexplicit

Constructor of the adaptor class based on the adapted container.

Parameters
containerthe adapted container

Member Function Documentation

◆ begin()

template<class T >
auto ext::reverser< T >::begin ( ) const
inline

Begin adaptor method to call rbegin.

Returns
reverse begin iterator

◆ end()

template<class T >
auto ext::reverser< T >::end ( ) const
inline

End adaptor method to call rend.

Returns
reverse end iterator

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