Fabcoin Core
0.16.2
P2P Digital Currency
|
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 |
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.
|
inline |
Definition at line 20 of file reverse_iterator.h.
|
inline |
Definition at line 22 of file reverse_iterator.h.
|
inline |
Definition at line 27 of file reverse_iterator.h.
|
private |
Definition at line 17 of file reverse_iterator.h.