Instigate Open Source Documentation

instigate::stl::tbinder1st< TF > Struct 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
 The result type.
typedef TFI::second_argument_type first_argument_type
 The first argument type.
typedef TFI::third_argument_type second_argument_type
 The second argument type.

Public Member Functions

result_type operator() (first_argument_type v, second_argument_type w) const
 operator ()
 tbinder1st (TF f, typename TFI::first_argument_type x) throw ()

Detailed Description

template<typename TF>
struct instigate::stl::tbinder1st< 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::tbinder1st< TF >::tbinder1st ( TF  f,
typename TFI::first_argument_type  x 
) throw () [inline]


f - the ternary function
x - the first argument to be bound

Member Function Documentation

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

operator ()

the result of the ternary function invocation on the bound first argument

References instigate::stl::invoke().

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

© Instigate CJSC, Open Source