mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 14:04:26 +02:00
Add hash_value
This commit is contained in:
@@ -63,6 +63,9 @@ class EmplaceInt
|
|||||||
friend bool operator!=(const EmplaceInt &l, const EmplaceInt &r)
|
friend bool operator!=(const EmplaceInt &l, const EmplaceInt &r)
|
||||||
{ return !(l == r); }
|
{ return !(l == r); }
|
||||||
|
|
||||||
|
friend std::size_t hash_value(const EmplaceInt &v)
|
||||||
|
{ return std::size_t(v.a_); }
|
||||||
|
|
||||||
friend std::ostream &operator <<(std::ostream &os, const EmplaceInt &v)
|
friend std::ostream &operator <<(std::ostream &os, const EmplaceInt &v)
|
||||||
{
|
{
|
||||||
os << "EmplaceInt: " << v.a_ << ' ' << v.b_ << ' ' << v.c_ << ' ' << v.d_ << ' ' << v.e_;
|
os << "EmplaceInt: " << v.a_ << ' ' << v.b_ << ' ' << v.c_ << ' ' << v.d_ << ' ' << v.e_;
|
||||||
|
Reference in New Issue
Block a user