mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
23 lines
297 B
C++
23 lines
297 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
Vector<int> v;
|
|
v.Add(1);
|
|
v.Add(2);
|
|
DUMPC(v);
|
|
|
|
Vector<int> v1 = v;
|
|
DUMPC(v1);
|
|
// DUMPC(v); -> v is picked, this would crash with runtime error
|
|
|
|
v <<= v1;
|
|
DUMPC(v1);
|
|
DUMPC(v);
|
|
|
|
Vector<int> v2(v, 0);
|
|
DUMPC(v2);
|
|
DUMPC(v);
|
|
}
|