template<typename T>
Supplier class
A supplier of instances of T.
Template parameters | |
---|---|
T | the type to supply |
Contents
Constructors, destructors, conversion operators
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.