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

#include <bslstp_exfunctional.h>

Public Types

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

Public Member Functions

 binary_compose (const OPERATION1 &fn1, const OPERATION2 &fn2, const OPERATION3 &fn3)
 
result_type operator() (const argument_type &x) const
 
result_type operator() (argument_type &x) const
 

Protected Attributes

OPERATION1 d_fn1
 
OPERATION2 d_fn2
 
OPERATION3 d_fn3
 

Detailed Description

template<class OPERATION1, class OPERATION2, class OPERATION3>
class bsl::binary_compose< OPERATION1, OPERATION2, OPERATION3 >

This class provides a function object adaptor for three other functors. When given two adaptable unary functions g1 and g2, and a third adaptable binary function f, and if g1 and g2s argument type is convertible to fs argument type, this class can be used to create a function object h that is equivalent to f(g1(x), g2(x)).

Member Typedef Documentation

◆ argument_type

template<class OPERATION1 , class OPERATION2 , class OPERATION3 >
typedef OPERATION2::argument_type bsl::binary_compose< OPERATION1, OPERATION2, OPERATION3 >::argument_type

◆ result_type

template<class OPERATION1 , class OPERATION2 , class OPERATION3 >
typedef OPERATION1::result_type bsl::binary_compose< OPERATION1, OPERATION2, OPERATION3 >::result_type

Constructor & Destructor Documentation

◆ binary_compose()

template<class OPERATION1 , class OPERATION2 , class OPERATION3 >
bsl::binary_compose< OPERATION1, OPERATION2, OPERATION3 >::binary_compose ( const OPERATION1 &  fn1,
const OPERATION2 &  fn2,
const OPERATION3 &  fn3 
)
inline

Member Function Documentation

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

Member Data Documentation

◆ d_fn1

template<class OPERATION1 , class OPERATION2 , class OPERATION3 >
OPERATION1 bsl::binary_compose< OPERATION1, OPERATION2, OPERATION3 >::d_fn1
protected

◆ d_fn2

template<class OPERATION1 , class OPERATION2 , class OPERATION3 >
OPERATION2 bsl::binary_compose< OPERATION1, OPERATION2, OPERATION3 >::d_fn2
protected

◆ d_fn3

template<class OPERATION1 , class OPERATION2 , class OPERATION3 >
OPERATION3 bsl::binary_compose< OPERATION1, OPERATION2, OPERATION3 >::d_fn3
protected

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