Sunshine master
Self-hosted game stream host for Moonlight.
round_robin_util Namespace Reference

A round-robin iterator utility. More...

Classes

class  it_wrap_t
 CRTP base that provides iterator operators for round-robin iterators. More...
 
class  round_robin_t
 Iterator that cycles indefinitely over a fixed begin/end range. More...
 

Functions

template<class V , class It >
round_robin_t< V, It > make_round_robin (It begin, It end)
 Create a round-robin iterator over a fixed range.
 

Detailed Description

A round-robin iterator utility.

Template Parameters
VThe value type.
TThe iterator type.

Function Documentation

◆ make_round_robin()

template<class V , class It >
round_robin_t< V, It > round_robin_util::make_round_robin ( It begin,
It end )

Create a round-robin iterator over a fixed range.

Parameters
beginIterator or pointer marking the start of the input range.
endIterator or pointer marking the end of the input range.
Returns
Iterator initialized to begin and wrapping before end.