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