Public Types | Public Member Functions | Protected Attributes | List of all members
ustl::binder2nd< BinaryFunction > Class Template Reference

Converts a binary function to a unary function by binding a constant value to the second argument. Use the bind2nd accessor to create this object. More...

#include <ufunction.h>

Inheritance diagram for ustl::binder2nd< BinaryFunction >:
ustl::unary_function< BinaryFunction::first_argument_type, BinaryFunction::result_type >

Public Types

typedef BinaryFunction::first_argument_type arg1_t
 
typedef BinaryFunction::second_argument_type arg2_t
 
typedef BinaryFunction::result_type result_t
 
- Public Types inherited from ustl::unary_function< BinaryFunction::first_argument_type, BinaryFunction::result_type >
typedef BinaryFunction::first_argument_type argument_type
 
typedef BinaryFunction::result_type result_type
 

Public Member Functions

 binder2nd (const BinaryFunction &pfn, const arg2_t &v)
 
result_t operator() (arg1_t v1) const
 

Protected Attributes

BinaryFunction _pfn
 
arg2_t _v
 

Detailed Description

template<class BinaryFunction>
class ustl::binder2nd< BinaryFunction >

Converts a binary function to a unary function by binding a constant value to the second argument. Use the bind2nd accessor to create this object.


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