![]() |
Scanframe Modular Application 0.1.0
|
Creates an adapter to reverse iterate over e.g. a std::vector or std::array. More...
#include <utils.h>
Public Member Functions | |
reverse_adapter (T &container) | |
Constructor passing a container type. | |
decltype(auto) | begin () |
Required method to allow iteration. It in fact returns the rbegin() of the container. | |
decltype(auto) | end () |
Required method to allow iteration. It in fact returns the rend() of the container. | |
Public Attributes | |
T & | container |
Creates an adapter to reverse iterate over e.g. a std::vector or std::array.
T | Type of the container to iterate over. std::vector<int> list{1, 2, 3, 4, 5, 6};
{
std::cout << entry << std::endl;
}
Creates an adapter to reverse iterate over e.g. a std::vector or std::array. Definition misc/gen/utils.h:28 |
|
explicit |
Constructor passing a container type.
decltype(auto) sf::reverse_adapter< T >::begin | ( | ) |
Required method to allow iteration. It in fact returns the rbegin() of the container.
decltype(auto) sf::reverse_adapter< T >::end | ( | ) |
Required method to allow iteration. It in fact returns the rend() of the container.
T& sf::reverse_adapter< T >::container |