|
|
@@ -53,6 +53,13 @@ public:
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+ /// Copy-construct.
|
|
|
+ KeyValue(const KeyValue& value) :
|
|
|
+ first_(value.first_),
|
|
|
+ second_(value.second_)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
/// Test for equality with another pair.
|
|
|
bool operator == (const KeyValue& rhs) const { return first_ == rhs.first_ && second_ == rhs.second_; }
|
|
|
/// Test for inequality with another pair.
|
|
|
@@ -62,6 +69,10 @@ public:
|
|
|
const T first_;
|
|
|
/// Value.
|
|
|
U second_;
|
|
|
+
|
|
|
+ private:
|
|
|
+ /// Prevent assignment.
|
|
|
+ KeyValue& operator = (const KeyValue& rhs);
|
|
|
};
|
|
|
|
|
|
/// Hash map node.
|