Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2014. The current version is 1.90.0.
template<class ForwardRange> ForwardRange& rotate(ForwardRange& rng, typename range_iterator<ForwardRange>::type middle); template<class ForwardRange> const ForwardRange& rotate(const ForwardRange& rng, typename range_iterator<const ForwardRange>::type middle);
rotate rotates the elements
in a range. It exchanges the two ranges [begin(rng), middle)
and [middle, end(rng)). Returns a reference to rng.
Defined in the header file boost/range/algorithm/rotate.hpp
ForwardRange is a
model of the Forward
Range Concept.
ForwardRange is mutable.
[begin(rng), middle) is a valid range.
[middle, end(rng)) is a valid range.
Linear. At most distance(rng) swaps are performed.