mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
cpp11 branch - committing the merge (rest of it)
git-svn-id: svn://ultimatepp.org/upp/trunk@7048 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
51687976c2
commit
e5dfeba4be
58 changed files with 1176 additions and 2335 deletions
|
|
@ -2,17 +2,18 @@
|
|||
|
||||
using namespace Upp;
|
||||
|
||||
struct ArrayOneHelper {
|
||||
Array<T> array;
|
||||
One<T> one;
|
||||
|
||||
public:
|
||||
operator One<T>&();
|
||||
|
||||
~ArrayOneHelper() { array.Add(one.Detach()); }
|
||||
};
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
Test(array.AddOne());
|
||||
Array< Vector<int> > a;
|
||||
a.Add() << 1 << 2 << 3;
|
||||
|
||||
auto b = clone(a);
|
||||
|
||||
DUMPCC(a);
|
||||
DUMPCC(b);
|
||||
|
||||
Vector<int> h;
|
||||
h.Insert(0, {1, 2, 3});
|
||||
h.Insert(1, {5, 4, 3});
|
||||
DDUMPC(h);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue