chsvlib
chsv helper source code

◆ generating_input_iterator() [1/4]

generating_input_iterator ( GeneratingFunctor  generator,
size_type  position_value = 0u 
)
noexcept

Initializes the created iterator with an instance of a functional object and an optional position specifier.

Parameters
generatorA functional object, of the type GeneratingFunctor, used to generate values associated with the created iterator upon request. A call to the functional object has a form generator() and is expected to produce a value implicitly convertible to value_type.
position_valueAn initializer for the positional value of the created iterator.