bind call and arguments to a nullary callback.
namespace using
lass::util;
void fun(const std::string& a);
float moreFun(float a, float b);
class Spam
{
void ham(const std::string& something);
std::string eggs(int num) const;
};
Callback0 boundFun = bind(fun, "hello world!");
CallbackR1<double> boundMoreFun(moreFun, 5, 6);
Spam spam1;
Callback0 boundHam = bind(&Spam::ham, &spam1, "eggs");
SharedPtr<Spam> spam2(new Spam);
Callback0 boundEggs = bind(&Spam::eggs, spam2, 3);
boundFun();
double result = boundMoreFun();
boundHam();
boundEggs();
Library for Assembled Shared Sources.