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

Description

Returns an infinite range that endlessly repeats the source range.

Synopsis of methods

constexpr view_closure< cycle_fncycle {}
 

Public Member Functions

template<typename Rng >
cycled_view< all_t< Rng > > operator() (Rng &&rng) const
 

Member Function Documentation

◆ operator()()

template<typename Rng >
cycled_view<all_t<Rng> > ranges::views::cycle_fn::operator() ( Rng &&  rng) const
Precondition
!empty(rng)
requires viewable_range<Rng> && forward_range<Rng>