adapter: add make_reverse for reverse adapter

This commit is contained in:
Danny Robson 2017-08-21 16:51:03 +10:00
parent dcdfa339d7
commit 439809ca65

View File

@ -44,6 +44,14 @@ namespace util::adapter {
};
template <typename Container>
auto
make_reverse (Container &c)
{
return reverse<Container> { c };
};
// adapt a container's range methods to return indices rather than iterators
template <typename T>
struct indices {