Bitcoin ABC 0.26.3
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 &xin) | |
auto | begin () const -> decltype(this->x.rbegin()) |
auto | end () const -> decltype(this->x.rend()) |
Private Attributes | |
T & | 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 14 of file reverse_iterator.h.
|
inlineexplicit |
Definition at line 18 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.
|
private |
Definition at line 15 of file reverse_iterator.h.