Instigate Open Source Documentation

instigate::stl::unary_compose< UF1, UF2 > Class Template Reference

Compose unary function with another unary function. More...

#include <functional.hpp>

List of all members.

Public Types

typedef UF1I::result_type result_type
 result type of the first unary function
typedef UF2I::argument_type argument_type
 argument type of the second unary function

Public Member Functions

result_type operator() (argument_type a) const
 operator ()
 unary_compose (UF1 uf1, UF2 uf2)
 Constructor.


Detailed Description

template<typename UF1, typename UF2>
class instigate::stl::unary_compose< UF1, UF2 >

Compose unary function with another unary function.

This adaptor takes two unary functions F(x) and g1(y) and composes them into an unary function F(g1(y));


Constructor & Destructor Documentation

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

Constructor.

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


Member Function Documentation

template<typename UF1, typename UF2>
result_type instigate::stl::unary_compose< UF1, UF2 >::operator() ( argument_type  a  )  const [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_uf1(m_uf2(a)).

References instigate::stl::invoke().


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


© Instigate CJSC, Open Source