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

Adaptor class to change begin and end behavior for rvalue qualified begin and end. This class takes ownership of the adapted instance by move construction. More...

#include <iterator.hpp>

Public Member Functions

 value_mover (T &&param)
 Constructor of the mover adaptor class. More...
 
auto begin ()
 Begin method calls rvalue qualified begin on adapted value. More...
 
auto end ()
 End method calls rvalue qualified end on adapted value. More...
 

Detailed Description

template<class T>
class ext::value_mover< T >

Adaptor class to change begin and end behavior for rvalue qualified begin and end. This class takes ownership of the adapted instance by move construction.

Template Parameters
Tthe type of class having rvalue qualified begin and end methods

Constructor & Destructor Documentation

◆ value_mover()

template<class T >
ext::value_mover< T >::value_mover ( T &&  param)
inlineexplicit

Constructor of the mover adaptor class.

Member Function Documentation

◆ begin()

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

Begin method calls rvalue qualified begin on adapted value.

◆ end()

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

End method calls rvalue qualified end on adapted value.


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