Implementation detail for a take_evenly range adaptor object. More...
#include <take_evenly.hpp>
Public Member Functions | |
template<class Range > | |
constexpr auto | operator() (Range &&range, std::size_t count) const |
Overload that implements the take_evenly algorithm. More... | |
constexpr auto | operator() (std::size_t count) const |
Overload that returns a view closure to compose with other views. More... | |
Implementation detail for a take_evenly range adaptor object.
Definition at line 34 of file take_evenly.hpp.
|
inlineconstexpr |
Overload that implements the take_evenly algorithm.
Range | A sized range. |
range | Source range from where to take elements. |
count | Number of elements to take. |
If count
or the range size are zero, it returns an empty range. If count
is greater than the range size, it returns all the elements. The first and last elements of the range are always included.
Definition at line 46 of file take_evenly.hpp.
|
inlineconstexpr |
Overload that returns a view closure to compose with other views.
count | Number of elements to take. |
If count
or the range size are zero, it returns an empty range. If count
is greater than the range size, it returns all the elements. The first and last elements of the range are always included.
Definition at line 86 of file take_evenly.hpp.