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);
}