Public Member Functions | List of all members
beluga::views::detail::take_evenly_fn Struct Reference

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...
 

Detailed Description

Implementation detail for a take_evenly range adaptor object.

Definition at line 34 of file take_evenly.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<class Range >
constexpr auto beluga::views::detail::take_evenly_fn::operator() ( Range &&  range,
std::size_t  count 
) const
inlineconstexpr

Overload that implements the take_evenly algorithm.

Template Parameters
RangeA sized range.
Parameters
rangeSource range from where to take elements.
countNumber 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.

◆ operator()() [2/2]

constexpr auto beluga::views::detail::take_evenly_fn::operator() ( std::size_t  count) const
inlineconstexpr

Overload that returns a view closure to compose with other views.

Parameters
countNumber 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.


The documentation for this struct was generated from the following file:


beluga
Author(s):
autogenerated on Tue Jul 16 2024 02:59:54