mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
23 lines
No EOL
403 B
C++
23 lines
No EOL
403 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
class AAA : public VectorMap<int, int>, public MoveableAndDeepCopyOption<AAA>
|
|
{
|
|
public:
|
|
AAA() {}
|
|
AAA(const AAA &, int) {}
|
|
unsigned GetHashValue() const {return 0;/*proxy here*/;}
|
|
};
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
AAA a;
|
|
a.Add(10,1);
|
|
AAA a2(a);
|
|
Cout() << a2.GetCount();
|
|
|
|
Index<AAA> ai;
|
|
ai.Add(a2);
|
|
Cout() << " / " << ai[0].GetCount();
|
|
} |