Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
util::BeginEndReverseIteratorWrapper< Container > Class Template Reference

#include <iterators.h>

Public Member Functions

 BeginEndReverseIteratorWrapper (const Container &c)
 
Container::const_reverse_iterator begin () const
 
Container::const_reverse_iterator end () const
 

Detailed Description

template<typename Container>
class util::BeginEndReverseIteratorWrapper< Container >

The Reverse() function allows to reverse the iteration order of a range-based for loop over a container that support STL reverse iterators. The syntax is: for (const type& t : Reverse(container_of_t)) { ... }

Definition at line 87 of file iterators.h.

Constructor & Destructor Documentation

◆ BeginEndReverseIteratorWrapper()

template<typename Container >
util::BeginEndReverseIteratorWrapper< Container >::BeginEndReverseIteratorWrapper ( const Container & c)
inlineexplicit

Definition at line 89 of file iterators.h.

Member Function Documentation

◆ begin()

template<typename Container >
Container::const_reverse_iterator util::BeginEndReverseIteratorWrapper< Container >::begin ( ) const
inline

Definition at line 90 of file iterators.h.

◆ end()

template<typename Container >
Container::const_reverse_iterator util::BeginEndReverseIteratorWrapper< Container >::end ( ) const
inline

Definition at line 93 of file iterators.h.


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