A wrapper class to easily iterate through a container in reverse.
More...
#include <ogdf/basic/Reverse.h>
|
using | iterator = typename std::conditional< std::is_const< T >::value, typename T::const_reverse_iterator, typename T::reverse_iterator >::type |
| Provides a reverse iterator disguised a normal iterator. More...
|
|
template<typename T>
class ogdf::Reverse< T >
A wrapper class to easily iterate through a container in reverse.
- Template Parameters
-
T | denotes the container type. |
Definition at line 46 of file Reverse.h.
◆ iterator
template<typename T >
using ogdf::Reverse< T >::iterator = typename std::conditional<std::is_const<T>::value, typename T::const_reverse_iterator, typename T::reverse_iterator>::type |
Provides a reverse iterator disguised a normal iterator.
Definition at line 56 of file Reverse.h.
◆ Reverse()
Creates a reverse iteration wrapper for container
.
Definition at line 52 of file Reverse.h.
◆ begin()
◆ end()
Returns a reverse iterator to the one-before-first element of m_container.
Definition at line 62 of file Reverse.h.
◆ m_container
The container for which reverse iterators should be provided.
Definition at line 48 of file Reverse.h.
The documentation for this class was generated from the following file: