Revision: | 1.1 |
Committed: | Wed Oct 20 08:33:38 2010 UTC (13 years, 8 months ago) by sf-pippijn |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | HEAD |
Log Message: | 2 glyphs / map space |
# | Content |
---|---|
1 | #pragma once |
2 | |
3 | template<typename Container> |
4 | struct reverse_view |
5 | { |
6 | typedef Container container_type; |
7 | typedef typename container_type::const_reverse_iterator const_iterator; |
8 | |
9 | const_iterator begin () const { return container.rbegin (); } |
10 | const_iterator end () const { return container.rend (); } |
11 | |
12 | container_type const &container; |
13 | }; |
14 | |
15 | template<typename Container> |
16 | reverse_view<Container> |
17 | reverse (Container const &container) |
18 | { |
19 | return { container }; |
20 | } |