BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::unary_compose< OPERATION1, OPERATION2 > Class Template Reference

#include <bslstp_exfunctional.h>

Public Types

typedef OPERATION2::argument_type argument_type
 
typedef OPERATION1::result_type result_type
 

Public Member Functions

 unary_compose (const OPERATION1 &x, const OPERATION2 &y)
 
result_type operator() (const argument_type &x) const
 
result_type operator() (argument_type &x) const
 

Protected Attributes

OPERATION1 d_fn1
 
OPERATION2 d_fn2
 

Detailed Description

template<class OPERATION1, class OPERATION2>
class bsl::unary_compose< OPERATION1, OPERATION2 >

This class provides a function object adaptor for two other functors. When given two adaptable unary functions f and g, and when gs return type is convertible to fs argument type, this class can be used to create a function object h that is equivalent to f(g(x)).

Member Typedef Documentation

◆ argument_type

template<class OPERATION1 , class OPERATION2 >
typedef OPERATION2::argument_type bsl::unary_compose< OPERATION1, OPERATION2 >::argument_type

◆ result_type

template<class OPERATION1 , class OPERATION2 >
typedef OPERATION1::result_type bsl::unary_compose< OPERATION1, OPERATION2 >::result_type

Constructor & Destructor Documentation

◆ unary_compose()

template<class OPERATION1 , class OPERATION2 >
bsl::unary_compose< OPERATION1, OPERATION2 >::unary_compose ( const OPERATION1 &  x,
const OPERATION2 &  y 
)
inline

Member Function Documentation

◆ operator()() [1/2]

template<class OPERATION1 , class OPERATION2 >
result_type bsl::unary_compose< OPERATION1, OPERATION2 >::operator() ( argument_type x) const
inline

◆ operator()() [2/2]

template<class OPERATION1 , class OPERATION2 >
result_type bsl::unary_compose< OPERATION1, OPERATION2 >::operator() ( const argument_type x) const
inline

Member Data Documentation

◆ d_fn1

template<class OPERATION1 , class OPERATION2 >
OPERATION1 bsl::unary_compose< OPERATION1, OPERATION2 >::d_fn1
protected

◆ d_fn2

template<class OPERATION1 , class OPERATION2 >
OPERATION2 bsl::unary_compose< OPERATION1, OPERATION2 >::d_fn2
protected

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