Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Namespaces | Functions
Saf/Algo/Bind.h File Reference

Function argument binding.
More...

Go to the source code of this file.

Classes

class  Saf::Algo::Binder1st< Func, Arg1Type >
 Create a unary function from a binary one by fixing its first parameter. More...
class  Saf::Algo::Binder2nd< Func, Arg2Type >
 Create a unary function from a binary one by fixing its second parameter. More...

Namespaces

namespace  Saf
 Global library namespace.
namespace  Saf::Algo
 Generic data handling algorithms and structures.

Functions

template<class Func , class Arg1Type >
Binder1st< Func, Arg1Type > Saf::Algo::Bind1st (const Func &func, const Arg1Type &arg1)
 Create a unary function from a binary one by fixing its first parameter.
template<class Func , class Arg2Type >
Binder2nd< Func, Arg2Type > Saf::Algo::Bind2nd (const Func &func, const Arg2Type &arg2)
 Create a unary function from a binary one by fixing its second parameter.

Detailed Description

Function argument binding.
Todo:
Make this more general? (as in Boost?)
@author Ondrej Danek <ondrej.danek@gmail.com>
@date 2012