Instigate Open Source Documentation

instigate::stl::binary_compose< BF, UF1, UF2 > Class Template Reference

compose binary function with 2 unary functions More...

#include <functional.hpp>

List of all members.

Public Types

typedef BFI::result_type result_type
 Result type.
typedef UF1I::argument_type argument_type
 Argument type.

Public Member Functions

result_type operator() (argument_type a)
 operator ()
 binary_compose (BF bf, UF1 uf1, UF2 uf2)
 Constructor.


Detailed Description

template<typename BF, typename UF1, typename UF2>
class instigate::stl::binary_compose< BF, UF1, UF2 >

compose binary function with 2 unary functions

This adaptor takes a binary function F(x,y) and 2 unary functions g1(w) and g2(z) and composes them into a binary function F(g1(w), g2(z)) (w,z)


Constructor & Destructor Documentation

template<typename BF, typename UF1, typename UF2>
instigate::stl::binary_compose< BF, UF1, UF2 >::binary_compose ( BF  bf,
UF1  uf1,
UF2  uf2 
) [inline]

Constructor.

Parameters:
bf - the "outer" function in the function composition operation
uf1 - the first "inner" function in the function composition operation
uf2 - the second "inner" function in the function composition operation


Member Function Documentation

template<typename BF, typename UF1, typename UF2>
result_type instigate::stl::binary_compose< BF, UF1, UF2 >::operator() ( argument_type  a  )  [inline]

operator ()

Parameters:
a - the argument the composed function to be invoked on
Returns:
The return value is the result of the invocation of m_bf(u_f1(a),u_f2(a))

References instigate::stl::invoke().


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


© Instigate CJSC, Open Source