Instigate Open Source Documentation

instigate::stl::bbinder< BF > Struct Template Reference

Helper class to bind both arguments of binary function with values. More...

#include <functional.hpp>

List of all members.

Public Types

typedef BFI::result_type result_type
 result type of the generator

Public Member Functions

result_type operator() ()
 operator ()
 bbinder (const BF &f, const typename BFI::first_argument_type &x, const typename BFI::second_argument_type &y) throw ()
 Constructor.


Detailed Description

template<typename BF>
struct instigate::stl::bbinder< BF >

Helper class to bind both arguments of binary function with values.

It is implemented so that it deals with BF using interface of the instigate::stl::binary_function. As a consequence, it is more generic than the standard STL-style binding, which would impose syntactical requirements on BF. 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.

Precondition:
Is Model of
Requirements on types:

Constructor & Destructor Documentation

template<typename BF>
instigate::stl::bbinder< BF >::bbinder ( const BF &  f,
const typename BFI::first_argument_type x,
const typename BFI::second_argument_type y 
) throw () [inline]

Constructor.

Parameters:
f - the binary function
x - the first argument to be bound
y - the second argument to be bound


Member Function Documentation

template<typename BF>
result_type instigate::stl::bbinder< BF >::operator() (  )  [inline]

operator ()

Call the binary function on the bound arguments

References instigate::stl::invoke().


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


© Instigate CJSC, Open Source