Template Class UnaryFreeFunction
Defined in File function_objects.hpp
Inheritance Relationships
Base Type
public ecl::UnaryFunction< A, void >
(Template Class UnaryFunction)
Class Documentation
-
template<typename A, typename R = void>
class UnaryFreeFunction : public ecl::UnaryFunction<A, void> Unary function object for global/static functions.
Creates a function object from a global/static function with a single argument.
See also
generateFunctionObject
See also
FunctionObjects.
- Template Parameters:
A – : the argument type.
R – : the return type.
Public Functions
-
inline UnaryFreeFunction(R (*function)(A))
Unary function object constructor for global/static functions.
Accepts a global/static function with a single argument and builds the function object around it.
- Parameters:
function – : a global/static function with a single argument.
-
inline virtual ~UnaryFreeFunction()