git-svn-id: svn://ultimatepp.org/upp/trunk@9862 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-05-22 06:56:59 +00:00
parent 9c26ab9e1a
commit ce9cb2caff
3 changed files with 11 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,4 @@
#ifndef _Ntl01_icpp_init_stub
#define _Ntl01_icpp_init_stub
#include "Core/init"
#endif

View file

@ -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"));