Wrapper around a generator functor that calls the generator's constructor to update its state to a specified offset, if the generator has implemented the method. More...
Public Member Functions | |
offset_gen (Generator gen) | |
result_type | operator() (index_type const &i) const |
Public Types | |
using | index_type = Index |
using | result_type = Value |
Wrapper around a generator functor that calls the generator's constructor to update its state to a specified offset, if the generator has implemented the method.
This is used in the generate() pAlgorithm to support generators that produce values that vary based on the number of times the generator's function operator has been invoked.