Public Types | Public Member Functions | Protected Attributes | List of all members
ustl::unary_compose< Operation1, Operation2 > Class Template Reference

Chains two unary functions together. More...

#include <ufunction.h>

Inheritance diagram for ustl::unary_compose< Operation1, Operation2 >:
ustl::unary_function< Operation2::argument_type, Operation1::result_type >

Public Types

typedef Operation2::argument_type arg_t
typedef const arg_t & rcarg_t
typedef Operation1::result_type result_t
- Public Types inherited from ustl::unary_function< Operation2::argument_type, Operation1::result_type >
typedef Operation2::argument_type argument_type
typedef Operation1::result_type result_type

Public Member Functions

 unary_compose (const Operation1 &f, const Operation2 &g)
result_t operator() (rcarg_t x) const

Protected Attributes

Operation1 _f
 f(x), if c(x) = f(g(x))
Operation2 _g
 g(x), if c(x) = f(g(x))

Detailed Description

template<typename Operation1, typename Operation2>
class ustl::unary_compose< Operation1, Operation2 >

Chains two unary functions together.

When f(x) and g(x) are composed, the result is function c(x)=f(g(x)). Use the compose1 accessor to create this object. This template is an extension, implemented by SGI STL and uSTL.

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

Generated on Mon Sep 28 2015 17:58:50 for uSTL by Doxygen 1.8.10