|
Simple Application Framework
1
|
Create a unary function from a binary one by fixing its first parameter. More...
#include <Bind.h>
Public Member Functions | |
| Binder1st (const Func &func, const Arg1Type &arg1) | |
| Constructor. | |
| Func::ResType | operator() (const typename Func::Arg2Type &arg2) const |
| The operation. | |
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.
| Saf::Algo::Binder1st< Func, Arg1Type >::Binder1st | ( | const Func & | func, |
| const Arg1Type & | arg1 | ||
| ) | [inline] |
Constructor.
| Func::ResType Saf::Algo::Binder1st< Func, Arg1Type >::operator() | ( | const typename Func::Arg2Type & | arg2 | ) | const [inline] |
The operation.
1.8.0