mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.docs
git-svn-id: svn://ultimatepp.org/upp/trunk@9862 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9c26ab9e1a
commit
ce9cb2caff
3 changed files with 11 additions and 1 deletions
|
|
@ -11,6 +11,9 @@ CONSOLE_APP_MAIN
|
|||
for(int i = 0; i < v.GetCount(); i++)
|
||||
LOG(v[i]);
|
||||
LOG("..and now iterators..");
|
||||
for(Vector<int>::Iterator q = v.Begin(), e = v.End(); q != e; q++)
|
||||
for(auto q = v.begin(), e = v.end(); q != e; q++)
|
||||
LOG(*q);
|
||||
LOG("..and now range-for..");
|
||||
for(const auto& q : v)
|
||||
LOG(q);
|
||||
}
|
||||
|
|
|
|||
4
tutorial/Ntl01/init
Normal file
4
tutorial/Ntl01/init
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef _Ntl01_icpp_init_stub
|
||||
#define _Ntl01_icpp_init_stub
|
||||
#include "Core/init"
|
||||
#endif
|
||||
|
|
@ -60,6 +60,9 @@ CONSOLE_APP_MAIN
|
|||
|
||||
for(int i = 0; i < m.GetCount(); i++)
|
||||
LOG(m.GetKey(i) << ": " << m[i]);
|
||||
|
||||
for(auto r : ~m)
|
||||
LOG(r.key << ": " << r.value);
|
||||
|
||||
DUMP(m.Find("2"));
|
||||
DUMP(m.Get("2"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue