Template Class UnaryFunctionReference< ReferenceWrapper, T, void >
Defined in File function_objects.hpp
Inheritance Relationships
Base Type
public ecl::UnaryFunction< T, void >
(Template Class UnaryFunction)
Class Documentation
-
template<typename ReferenceWrapper, typename T>
class UnaryFunctionReference<ReferenceWrapper, T, void> : public ecl::UnaryFunction<T, void> Creates a void unary function from a reference wrapper.
Takes a reference wrapper containing a unary function (strictly by definition) object reference and creates a UnaryFunction descendant. This is a specialisation which caters to unary function objects with void return type.
See also
UnaryFunctionReference, FunctionObjects.
- Template Parameters
FunctionObject – : type of the function object to be referenced.
Public Types
-
typedef ReferenceWrapper::type FunctionObject
The wrapper’s function object reference type.
Public Functions
-
inline explicit UnaryFunctionReference(const ReferenceWrapper &wrapper)
Creates a UnaryFunction descendant from a reference wrapper.
Creates a UnaryFunction descendant by reference (not copying).
- Parameters
wrapper – : the reference wrapper holding the unary function object to be referenced.
-
inline virtual ~UnaryFunctionReference()