Trig::unary_compose< UnaryFunction1, UnaryFunction2 > Class Template Reference

Function adaptor for combining function objects. More...

#include <unary_compose.h>

List of all members.

Public Member Functions

 unary_compose (UnaryFunction1 ufn1, UnaryFunction2 ufn2)
UnaryFunction1::result_type operator() (const typename UnaryFunction2::argument_type &x)

Detailed Description

template<class UnaryFunction1, class UnaryFunction2>
class Trig::unary_compose< UnaryFunction1, UnaryFunction2 >

Function adaptor for combining function objects.

I got this function adaptor from the STL documentation, because it doesn't seem to be present in recent versions of GCC.

What it does is that if you call it with two unary functions "x1( X )" and "x2( Y )", this function object evaluates internally as

x1( x2( X ) )

This can be a very useful thing to have when using the STL functionals and algorithms.

Author:
Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Revision
457114
Date
2011-09-05 11:35:49 +0200 (Mon, 05 Sep 2011)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1