adapter: add make_reverse for reverse adapter
This commit is contained in:
parent
dcdfa339d7
commit
439809ca65
@ -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
|
// adapt a container's range methods to return indices rather than iterators
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct indices {
|
struct indices {
|
||||||
|
Loading…
Reference in New Issue
Block a user