Struct take_evenly_fn
Defined in File take_evenly.hpp
Struct Documentation
-
struct take_evenly_fn
Implementation detail for a take_evenly range adaptor object.
Public Functions
-
template<class Range>
inline constexpr auto operator()(Range &&range, std::size_t count) const Overload that implements the take_evenly algorithm.
If
count
or the range size are zero, it returns an empty range. Ifcount
is greater than the range size, it returns all the elements. The first and last elements of the range are always included.- Template Parameters:
Range – A sized range.
- Parameters:
range – Source range from where to take elements.
count – Number of elements to take.
-
inline constexpr auto operator()(std::size_t count) const
Overload that returns a view closure to compose with other views.
If
count
or the range size are zero, it returns an empty range. Ifcount
is greater than the range size, it returns all the elements. The first and last elements of the range are always included.- Parameters:
count – Number of elements to take.
-
template<class Range>