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