CSimpleArrayEqualHelper Class
This class is a helper for the CSimpleArray class.
Syntax
template <class T>
class CSimpleArrayEqualHelper
Parameters
T
A derived class.
Members
Public Methods
Name | Description |
---|---|
CSimpleArrayEqualHelper::IsEqual | (Static) Tests two CSimpleArray object elements for equality. |
Remarks
This traits class is a supplement to the CSimpleArray
class. It provides a method for comparing two elements stored in a CSimpleArray
object. By default, the elements are compared using operator=(), but if the array contains complex data types that lack their own equality operator, you will need to override this class.
Requirements
Header: atlsimpcoll.h
CSimpleArrayEqualHelper::IsEqual
Tests two CSimpleArray
object elements for equality.
static bool IsEqual(
const T& t1,
const T& t2);
Parameters
t1
An object of type T.
t2
An object of type T.
Return Value
Returns true if the elements are equal, false otherwise.
See also
CSimpleArray Class
CSimpleArrayEqualHelperFalse Class
Class Overview
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for