template<typename T>
okapi::Supplier class

A supplier of instances of T.

Template parameters
T the type to supply

Constructors, destructors, conversion operators

Supplier(std::function<T(void)> ifunc) explicit
~Supplier() defaulted virtual

Public functions

auto get() const -> T
Get an instance of type T.

Protected variables

std::function<T(void)> func

Function documentation

template<typename T>
T okapi::Supplier<T>::get() const

Get an instance of type T.

Returns an instance of T

This is usually a new instance, but it does not have to be.