Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Saf::Algo::Binder2nd< Func, Arg2Type > Class Template Reference

Create a unary function from a binary one by fixing its second parameter. More...

#include <Bind.h>

Inheritance diagram for Saf::Algo::Binder2nd< Func, Arg2Type >:
Saf::Algo::UnaryFunction< Func::Arg1Type, Func::ResType >

List of all members.

Public Member Functions

 Binder2nd (const Func &func, const Arg2Type &arg2)
 Constructor.
Func::ResType operator() (const typename Func::Arg1Type &arg1) const
 The operation.

Detailed Description

template<class Func, class Arg2Type>
class Saf::Algo::Binder2nd< Func, Arg2Type >

Create a unary function from a binary one by fixing its second parameter.

A copy of the argument is stored internally. To prevent copying of large objects use Saf::Ref or Saf::ConstRef as Arg2Type.


Constructor & Destructor Documentation

template<class Func, class Arg2Type>
Saf::Algo::Binder2nd< Func, Arg2Type >::Binder2nd ( const Func &  func,
const Arg2Type &  arg2 
) [inline]

Constructor.


Member Function Documentation

template<class Func, class Arg2Type>
Func::ResType Saf::Algo::Binder2nd< Func, Arg2Type >::operator() ( const typename Func::Arg1Type &  arg1) const [inline]

The operation.


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