mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
23 lines
291 B
C++
23 lines
291 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct Foo {
|
|
String a;
|
|
int b;
|
|
|
|
unsigned GetHashValue() const { return CombineHash(a, b); }
|
|
};
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
Foo x;
|
|
x.a = "world";
|
|
x.b = 22;
|
|
|
|
DUMP(GetHashValue(x));
|
|
|
|
x.a << '!';
|
|
|
|
DUMP(GetHashValue(x));
|
|
}
|