Instigate Open Source Documentation

instigate::stl::tbinder2nd< TF > Class Template Reference

Template class aimed to turn ternary function into binary function. More...

#include <functional.hpp>

List of all members.

Public Types

typedef TFI::result_type result_type
 Result type.
typedef TFI::first_argument_type first_argument_type
 First argument type.
typedef TFI::third_argument_type second_argument_type
 Second argument type.

Public Member Functions

result_type operator() (first_argument_type v, second_argument_type w)
 operator ()
 tbinder2nd (TF f, typename TFI::second_argument_type x) throw ()
 Constructor.


Detailed Description

template<typename TF>
class instigate::stl::tbinder2nd< TF >

Template class aimed to turn ternary function into binary function.

This is a model of instigate::stl::binary_function.

It is implemented so that it deals with ternary function using instigate::stl::ternary_function


Constructor & Destructor Documentation

template<typename TF>
instigate::stl::tbinder2nd< TF >::tbinder2nd ( TF  f,
typename TFI::second_argument_type  x 
) throw () [inline]

Constructor.

Parameters:
f - the ternary function
x - the second argument to be bound


Member Function Documentation

template<typename TF>
result_type instigate::stl::tbinder2nd< TF >::operator() ( first_argument_type  v,
second_argument_type  w 
) [inline]

operator ()

Returns:
The return value is the result of ternary function invocation on the bound second argument

References instigate::stl::invoke().


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


© Instigate CJSC, Open Source