mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.tutorials
git-svn-id: svn://ultimatepp.org/upp/trunk@12056 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
801094bc23
commit
cfbc0befb2
1 changed files with 3 additions and 8 deletions
|
|
@ -48,20 +48,15 @@ void OneTutorial()
|
|||
s.Clear();
|
||||
DUMP((bool)s);
|
||||
|
||||
/// Helper class MakeOne derived from One can be used to create contained element:
|
||||
/// Helper function MakeOne derived from One can be used to create contained element:
|
||||
|
||||
s = MakeOne<Derived1>();
|
||||
DUMP(s->Get());
|
||||
|
||||
///
|
||||
|
||||
MakeOne<Derived2> d2;
|
||||
DUMP(d2->Get());
|
||||
|
||||
///
|
||||
|
||||
s = pick(d2);
|
||||
DUMP(s->Get());
|
||||
auto t = pick(s);
|
||||
DUMP(t->Get());
|
||||
|
||||
///
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue