Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::view::cycle_fn Struct Reference

Description

Returns an infinite range that endlessly repeats the source range.

Synopsis of methods

constexpr view< cycle_fncycle {}
 

Public Member Functions

template<typename Rng >
auto operator() (Rng &&rng) const -> cycled_view< all_t< Rng >> requires ViewableRange< Rng > &&ForwardRange< Rng >
 

Member Function Documentation

◆ operator()()

template<typename Rng >
auto ranges::view::cycle_fn::operator() ( Rng &&  rng) const -> cycled_view<all_t<Rng>> requires ViewableRange<Rng> && ForwardRange<Rng>
Precondition
!empty(rng)