Instigate Open Source Documentation

instigate::stl::tbinder< TF > Struct Template Reference

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

#include <functional.hpp>

List of all members.

Public Types

typedef TFI::result_type result_type
 This is a result type of ternary function.

Public Member Functions

result_type operator() ()
 operator ()
 tbinder (TF f, const typename TFI::first_argument_type &x, const typename TFI::second_argument_type &y, const typename TFI::third_argument_type &z) throw ()
 Constructor.


Detailed Description

template<typename TF>
struct instigate::stl::tbinder< TF >

Template class aimed to turn ternary function into generator.

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

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


Constructor & Destructor Documentation

template<typename TF>
instigate::stl::tbinder< TF >::tbinder ( TF  f,
const typename TFI::first_argument_type x,
const typename TFI::second_argument_type y,
const typename TFI::third_argument_type z 
) throw () [inline]

Constructor.

Parameters:
f - the ternary function
x - the first argument to be bound
y - the second argument to be bound
z - the third argument to be bound


Member Function Documentation

template<typename TF>
result_type instigate::stl::tbinder< TF >::operator() (  )  [inline]

operator ()

Returns:
the result of the ternary function invocation on the bound arguments

References instigate::stl::invoke().


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


© Instigate CJSC, Open Source