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

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

#include <Bind.h>

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

List of all members.

Public Member Functions

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

Detailed Description

template<class Func, class Arg1Type>
class Saf::Algo::Binder1st< Func, Arg1Type >

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

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


Constructor & Destructor Documentation

template<class Func, class Arg1Type>
Saf::Algo::Binder1st< Func, Arg1Type >::Binder1st ( const Func &  func,
const Arg1Type arg1 
) [inline]

Constructor.


Member Function Documentation

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

The operation.


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