description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||||
---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CSimpleMapEqualHelper Class |
CSimpleMapEqualHelper Class |
11/04/2016 |
|
|
9bb2968a-d609-405c-8272-ff3b42df6164 |
This class is a helper for the CSimpleMap class.
template <class TKey, class TVal>
class CSimpleMapEqualHelper
TKey
The key element.
TVal
The value element.
Name | Description |
---|---|
CSimpleMapEqualHelper::IsEqualKey | (Static) Tests two keys for equality. |
CSimpleMapEqualHelper::IsEqualValue | (Static) Tests two values for equality. |
This traits class is a supplement to the CSimpleMap
class. It provides methods for comparing two CSimpleMap
object elements (specifically, the key and value components) for equality. By default, the keys and values are compared using operator==(), but if the map contains complex data types that lack their own equality operator, this class can be overridden to provide the extra required functionality.
Header: atlsimpcoll.h
Tests two keys for equality.
static bool IsEqualKey(const TKey& k1, const TKey& k2);
k1
The first key.
k2
The second key.
Returns true if the keys are equal, false otherwise.
Tests two values for equality.
static bool IsEqualValue(const TVal& v1, const TVal& v2);
v1
The first value.
v2
The second value.
Returns true if the values are equal, false otherwise.