mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-08 02:54:56 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@9802 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b85a7077e0
commit
b2ce197e2b
8 changed files with 36 additions and 29 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue