Classes | |
struct | tag |
Unary Function Concept tag. More... | |
struct | interface |
Interface for the concept instigate::stl::unary_function. More... | |
struct | interface< R(*)(A)> |
Making plain C function with 1 arguments a model of concept instigate::stl::unary_function. More... | |
struct | interface< R(A::*)()> |
Making a void method of class a model of the concept instigate::stl::unary_function. More... | |
struct | interface< R(A::*)() const > |
Making a const void method of class a model of the concept instigate::stl::unary_function. More... | |
struct | requirements |
Requirements of the Unary Function. More... |
Unary Function Concept.
unary_function is a correspondence between an argument value and a result value. I.e. for each argument value it should be possible to invoke the function and obtain the corresponding result value. 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 Unary Function because we require information about argument type and result type. Thus, all unary functions in Instigate STL are adaptable, including plain C functions.