|type of the value returned by the function |
Static Public Member Functions
|static result_type||invoke (const G &f)|
|Invoke the function. |
A generator is a kind of object: an object that is called as if it were an ordinary C++ function. A generator is called with no arguments.
Ideally, invocation should have constant time complexity. Although the algorithms that use this concept are applicable even if the functions have higher complexity, but using them with such functions invalidates the complexity guarantee of the algorithm itself.
This corresponds to SGI STL's concept Adaptable generator because we require information about result type. Thus, all generators in Instigate STL are adaptable, including plain C functions.
|static result_type instigate::stl::generator::interface< G >::invoke||(||const G &||f||)||
Invoke the function.
|f||- function to be invoked|
Referenced by instigate::stl::invoke().