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

#include <yat/utility/stl_utility.h>

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

Public Member Functions

 compose_f_gx (void)
 default constructor More...
 
 compose_f_gx (F f, G g)
 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 >
compose_f_gx< F, G > make_compose_f_gx (F f, G g)
 

Detailed Description

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

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

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

See Also
compose_f_gx_hy, compose_f_gxy, and compose_f_gx_hx
unary_compose (SGI extension)
Since
New in yat 0.7

Constructor & Destructor Documentation

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

default constructor

Requires that F and G have default constructors

Friends And Related Function Documentation

template<class F , class G >
compose_f_gx< F, G > make_compose_f_gx ( f,
g 
)
related

Convenient function to create a compose_f_gx.

See Also
std::make_pair
Since
New in yat 0.7

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

Generated on Wed Jan 4 2017 02:23:09 for yat by  doxygen 1.8.5