yat  0.14.5pre
Public Member Functions | Related Functions | List of all members
theplu::yat::utility::compose_f_gx_hx< F, G, H > Class Template Reference

#include <yat/utility/stl_utility.h>

Inheritance diagram for theplu::yat::utility::compose_f_gx_hx< F, G, H >:

Public Member Functions

 compose_f_gx_hx (void)
 default constructor More...
 
 compose_f_gx_hx (F f, G g, H h)
 Constructor.
 
F::result_type operator() (typename G::argument_type x) const
 Does the work.
 

Related Functions

(Note that these are not member functions.)

template<class F , class G , class H >
compose_f_gx_hx< F, G, H > make_compose_f_gx_hx (F f, G g, H h)
 

Detailed Description

template<class F, class G, class H>
class theplu::yat::utility::compose_f_gx_hx< F, G, H >

If f is a binary functor, g and h a unary functors, return type of g is convertible to F's first argument type, and return type of h is convertible to F's second argument type, then compose_f_gx_hx can be used to create a functor equivalent to $ f(g(x), h(x)) $

See Also
compose_f_gx_hy, compose_f_gxy, and compose_f_gx
binary_compose (SGI extension)
Since
New in yat 0.11

Constructor & Destructor Documentation

template<class F, class G, class H>
theplu::yat::utility::compose_f_gx_hx< F, G, H >::compose_f_gx_hx ( void  )
inline

default constructor

Requires that F, G, and H have default constructors

Friends And Related Function Documentation

template<class F , class G , class H >
compose_f_gx_hx< F, G, H > make_compose_f_gx_hx ( f,
g,
h 
)
related

Convenient function to create a compose_f_gx_hx.

See Also
std::make_pair
Since
New in yat 0.11

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

Generated on Tue Sep 26 2017 02:33:31 for yat by  doxygen 1.8.5