Instigate Open Source Documentation

instigate::stl::ubinder< UF > Struct Template Reference

Helper class to bind the argument of an unary function. More...

#include <functional.hpp>

List of all members.

Public Types

typedef UFI::result_type result_type
 result type of the generator

Public Member Functions

result_type operator() () const
 operator ()
 ubinder (UF f, typename UFI::argument_type x) throw ()

Detailed Description

template<typename UF>
struct instigate::stl::ubinder< UF >

Helper class to bind the argument of an unary function.

It is implemented so that it deals with UF using the interface of the Unary Function. As a consequence, it is more generic than the standard STL-style binding, which would impose syntactical requirements on UF. However it is implemented so that it is also a model of classical STL-style generator and can be used for example in a call to generate() algorithm.

Is Model of
Requirements on types:

Constructor & Destructor Documentation

template<typename UF>
instigate::stl::ubinder< UF >::ubinder ( UF  f,
typename UFI::argument_type  x 
) throw () [inline]


f - the unary function
x - the argument to be bound

Member Function Documentation

template<typename UF>
result_type instigate::stl::ubinder< UF >::operator() (  )  const [inline]

operator ()

Call the unary function on the bound argument

References instigate::stl::invoke().

The documentation for this struct was generated from the following file:

© Instigate CJSC, Open Source