ultimatepp/uppdev/Index/Index.cpp
cxl 4a1c627474 Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

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