.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@9802 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-05-05 05:20:18 +00:00
parent b85a7077e0
commit b2ce197e2b
8 changed files with 36 additions and 29 deletions

View file

@ -37,14 +37,13 @@ CONSOLE_APP_MAIN
{
Foo a(10);
Event<> ev1, ev2;
Event<> ev1, ev2, ev4;
Event<int> ev3;
ev1 << [&] { a.Action(); };
ev2 << [] { Fn(); };
ev3 << [&](int x) { a.ActionWithParam(x); };
Event<> ev4([&] { a.ActionWithParam(30); });
ev4 << [&] { a.ActionWithParam(30); };
ev1();
ev2();