Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
reverse_range< T > Class Template Reference
Template used for reverse iteration in C++11 range-based for loops. More...
#include <reverse_iterator.h>
Public Member Functions | |
reverse_range (T &x) | |
auto | begin () const -> decltype(this->m_x.rbegin()) |
auto | end () const -> decltype(this->m_x.rend()) |
Private Attributes | |
T & | m_x |
Detailed Description
template<typename T>
class reverse_range< T >
Template used for reverse iteration in C++11 range-based for loops.
std::vector<int> v = {1, 2, 3, 4, 5}; for (auto x : reverse_iterate(v)) std::cout << x << " ";
Definition at line 15 of file reverse_iterator.h.
Constructor & Destructor Documentation
◆ reverse_range()
template<typename T >
|
inlineexplicit |
Definition at line 20 of file reverse_iterator.h.
Member Function Documentation
◆ begin()
template<typename T >
|
inline |
Definition at line 22 of file reverse_iterator.h.
References reverse_range< T >::m_x.
◆ end()
template<typename T >
|
inline |
Definition at line 27 of file reverse_iterator.h.
References reverse_range< T >::m_x.
Member Data Documentation
◆ m_x
template<typename T >
|
private |
Definition at line 17 of file reverse_iterator.h.
Referenced by reverse_range< T >::begin(), and reverse_range< T >::end().
The documentation for this class was generated from the following file: