CSimpleArrayEqualHelper Class


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CSimpleArrayEqualHelper Class.

This class is a helper for the CSimpleArray class.

template <class T>  
class CSimpleArrayEqualHelper


A derived class.

Public Methods

CSimpleArrayEqualHelper::IsEqual(Static) Tests two CSimpleArray object elements for equality.

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.

Header: atlsimpcoll.h

Tests two CSimpleArray object elements for equality.

static bool IsEqual(
    const T& t1,
    const T& t2);


An object of type T.

An object of type T.

Return Value

Returns true if the elements are equal, false otherwise.

CSimpleArray Class
CSimpleArrayEqualHelperFalse Class
Class Overview