Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CSimpleMapEqualHelperFalse Class

This class is a helper for the CSimpleMap class.

template < class TKey, class TVal > class CSimpleMapEqualHelperFalse

Name

Description

CSimpleMapEqualHelperFalse::IsEqualKey

(Static) Tests two keys for equality.

CSimpleMapEqualHelperFalse::IsEqualValue

(Static) Returns false.

This traits class is a supplement to the CSimpleMap class. It provides a method for comparing two elements contained in the CSimpleMap object, specifically two value elements or two key elements.

The value comparison will always return false, and in addition, will call ATLASSERT with an argument of false if it is ever referenced. In situations where the equality test is not sufficiently defined, this class allows a map containing key/value pairs to operate correctly for most methods but fail in a well-defined manner for methods that depend on comparisons such as CSimpleMap::FindVal.

Header: atlsimpcoll.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.