1.9
Public Member Functions | List of all members
ReverseRange< T > Class Template Reference

Range class to work with C++11 range based for loops in a reverse order. More...

Public Member Functions

 ReverseRange (T &x)
 
EGT_NODISCARD auto begin () const -> decltype(this->m_x.rbegin())
 begin iterator More...
 
EGT_NODISCARD auto end () const -> decltype(this->m_x.rend())
 end iterator More...
 

Detailed Description

template<typename T>
class egt::v1::detail::ReverseRange< T >

Range class to work with C++11 range based for loops in a reverse order.

See also
reverse_iterate

Constructor & Destructor Documentation

◆ ReverseRange()

ReverseRange ( T &  x)
inlineexplicit
Parameters
xContainer reference.

Member Function Documentation

◆ begin()

EGT_NODISCARD auto begin ( ) const -> decltype(this->m_x.rbegin())
inline

begin iterator

◆ end()

EGT_NODISCARD auto end ( ) const -> decltype(this->m_x.rend())
inline

end iterator