Nui
reverse_view.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iterator>
4 
5 namespace Nui
6 {
7  template <typename T>
9  {
10  public:
11  reverse_view(T& container)
12  : container_{container}
13  {}
14 
15  auto begin() const
16  {
17  return std::rbegin(container_);
18  }
19 
20  auto end() const
21  {
22  return std::rend(container_);
23  }
24 
25  private:
26  T& container_;
27  };
28 }
Definition: reverse_view.hpp:9
reverse_view(T &container)
Definition: reverse_view.hpp:11
auto end() const
Definition: reverse_view.hpp:20
auto begin() const
Definition: reverse_view.hpp:15
Definition: file_dialog.hpp:6