Rose
Public Member Functions | Protected Attributes | List of all members
rose::ReverseContainerView< ContainerType > Class Template Reference

Provide a reverse view of a standard container type. More...

#include <Utilities.h>

Public Member Functions

 ReverseContainerView (ContainerType &container)
 Constructor. More...
 
auto begin ()
 Get the begin iterator for the reverse view. More...
 
auto end ()
 Get the end iterator for the reverse view. More...
 

Protected Attributes

ContainerType & mContainer
 A reference to the standard container.
 

Detailed Description

template<class ContainerType>
class rose::ReverseContainerView< ContainerType >

Provide a reverse view of a standard container type.

Template Parameters
ContainerTypeThe type of container

Constructor & Destructor Documentation

◆ ReverseContainerView()

template<class ContainerType >
rose::ReverseContainerView< ContainerType >::ReverseContainerView ( ContainerType &  container)
inlineexplicit

Constructor.

Parameters
containerThe standard container to provide the view of.
reverseIf true reverse the container view, if false do not reverse.

Member Function Documentation

◆ begin()

template<class ContainerType >
auto rose::ReverseContainerView< ContainerType >::begin ( )
inline

Get the begin iterator for the reverse view.

Returns
the standard container rbegin iterator

◆ end()

template<class ContainerType >
auto rose::ReverseContainerView< ContainerType >::end ( )
inline

Get the end iterator for the reverse view.

Returns
the standard container rend iterator

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