distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
estd::ReverseAdaptor< T > Class Template Reference

ReverseAdaptor template class is an adaptor that "reverses" access to the container. More...

#include <ReverseAdaptor.hpp>

Public Member Functions

constexpr ReverseAdaptor (T &container) noexcept
 ReverseAdaptor's constructor. More...
 
T::reverse_iterator begin () const noexcept
 
T::reverse_iterator end () const noexcept
 

Private Attributes

T & container_
 reference to container More...
 

Detailed Description

template<typename T>
class estd::ReverseAdaptor< T >

ReverseAdaptor template class is an adaptor that "reverses" access to the container.

Template Parameters
Tis the type of container

Constructor & Destructor Documentation

◆ ReverseAdaptor()

template<typename T >
constexpr estd::ReverseAdaptor< T >::ReverseAdaptor ( T &  container)
inlineexplicitnoexcept

ReverseAdaptor's constructor.

Parameters
[in]containeris a reference to container

Member Function Documentation

◆ begin()

template<typename T >
T::reverse_iterator estd::ReverseAdaptor< T >::begin ( ) const
inlinenoexcept
Returns
reverse_iterator to the beginning of "reversed" container (last element of original container)

◆ end()

template<typename T >
T::reverse_iterator estd::ReverseAdaptor< T >::end ( ) const
inlinenoexcept
Returns
reverse_iterator to the end of "reversed" container (before-the-first element of original container)

Member Data Documentation

◆ container_

template<typename T >
T& estd::ReverseAdaptor< T >::container_
private

reference to container


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