template<typename T>
fun::Robin struct

Round Robin.

Template parameters
T

The Robin class is implementing a round-robin algorithm. It is used to cycle through a sequence of elements in a circular manner. The constructor initializes the cycle with a specified number of parts, and each part is assigned a unique key. The exclude method returns an iterable wrapper that excludes a specified part from the cycle.

Constructors, destructors, conversion operators

Robin(T num_parts) explicit
Construct a new Robin object.

Public functions

auto exclude(T from_part) const -> detail::RobinIterableWrapper< T > -> auto
exclude

Public variables

std::vector<detail::RobinSlNode<T>> cycle

Function documentation

template<typename T>
fun::Robin<T>::Robin(T num_parts) explicit

Construct a new Robin object.

Parameters
num_parts in

template<typename T>
auto fun::Robin<T>::exclude(T from_part) const -> detail::RobinIterableWrapper< T >

exclude

Parameters
from_part in
Returns detail::RobinIterableWrapper<T>

The exclude method in the Robin class returns an iterable wrapper that excludes a specified part from the cycle.