diff options
Diffstat (limited to 'build/utility')
-rw-r--r-- | build/utility | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/build/utility b/build/utility index 6584c0a..01ecd95 100644 --- a/build/utility +++ b/build/utility @@ -50,12 +50,12 @@ namespace build public: reverse_range (T& x): x_ (x) {} - auto begin () const -> decltype (this->x_.rbegin ()) + auto begin () -> decltype (this->x_.rbegin ()) { return x_.rbegin (); } - auto end () const -> decltype (this->x_.rend ()) + auto end () -> decltype (this->x_.rend ()) { return x_.rend (); } @@ -68,6 +68,13 @@ namespace build return reverse_range<T> (x); } + template <typename T> + inline reverse_range<const T> + reverse_iterate (const T& x) + { + return reverse_range<const T> (x); + } + // Call a function if there is an exception. // |