yat  0.10.4pre
Public Member Functions | Related Functions
theplu::yat::utility::compose_f_gxy< F, G > Class Template Reference

#include </scratch/bob/jari/tmp/pristine/yat-0.10.x/yat/utility/stl_utility.h>

List of all members.

Public Member Functions

 compose_f_gxy (F f, G g)
 Constructor.
F::result_type operator() (typename G::first_argument_type x, typename G::second_argument_type y) const
 Does the work.

Related Functions

(Note that these are not member functions.)

template<class F , class G >
compose_f_gxy< F, G > make_compose_f_gxy (F f, G g)

Detailed Description

template<class F, class G>
class theplu::yat::utility::compose_f_gxy< F, G >

See The C++ Standard Library - A Tutorial and Reference by
Nicolai M. Josuttis

If f is a unary functor, g is a binary functor, and return type
of g is convertible to F's argument type, then
compose_f_gxy can be used to create a functor equivalent to

$ f(g(x,y)) $

- F must be an <a
href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">
AdaptableUnaryFunction</a>
- G must be an <a
href="http://www.sgi.com/tech/stl/AdaptableBinaryFunction.html">
AdaptableBinaryFunction</a>
- \c G::result_type is convertible to \c F::argument_type

\see compose_f_gx_hy and compose_f_gx

\since New in yat 0.7

Friends And Related Function Documentation

template<class F , class G >
compose_f_gxy< F, G > make_compose_f_gxy ( f,
g 
)
related

Convenient function to create a compose_f_gxy.

 \see std::make_pair

 \since New in yat 0.7

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

Generated on Mon Nov 11 2013 09:41:46 for yat by  doxygen 1.8.1