Beispiel #1
0
int main()
{
	MyClass foo (10);
	const MyClass bar (20);
	foo.get() = 16;
	cout << foo.get() << endl;
	cout << bar.get() << endl;

	return 0;
}
Beispiel #2
0
 friend std::size_t hash_value(const MyClass &o)
 {
     return boost::hash<int>()(o.get());
 }
Beispiel #3
0
void print (const MyClass& arg)
{
	cout << arg.get() << endl;
}