diff --git a/adapter.hpp b/adapter.hpp index c258a685..c7d1ec7c 100644 --- a/adapter.hpp +++ b/adapter.hpp @@ -44,6 +44,14 @@ namespace util::adapter { }; + template + auto + make_reverse (Container &c) + { + return reverse { c }; + }; + + // adapt a container's range methods to return indices rather than iterators template struct indices {