mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
.CoreTutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@10541 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9e9b622eaf
commit
20304de982
5 changed files with 148 additions and 17 deletions
|
|
@ -1,25 +1,11 @@
|
|||
#include "Tutorial.h"
|
||||
|
||||
#if 0
|
||||
return CombineCompare(a.NDX, b.NDX)(a.V_TEXT, b.V_TEXT)(a.V_NUMBER)(b.V_NUMBER);
|
||||
|
||||
Vector<int> id = clone(_id);
|
||||
|
||||
SplitTo(ln.Mid(4), '@', path, ln);
|
||||
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
Event<const Vector<int>&> h = [](const Vector<int>& x) { DUMP(x); };
|
||||
|
||||
Event<> ev;
|
||||
|
||||
{
|
||||
Vector<int> x = { 1, 2 };
|
||||
ev = [=, x = pick(x)] { h(x); };
|
||||
}
|
||||
|
||||
ev();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue