mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
.tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@10867 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b3dbf200b1
commit
b4cd2a5b6d
1 changed files with 16 additions and 1 deletions
|
|
@ -48,5 +48,20 @@ void OneTutorial()
|
|||
s.Clear();
|
||||
DUMP((bool)s);
|
||||
|
||||
/// Helper class 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());
|
||||
|
||||
///
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue