CSimpleArrayEqualHelperFalse 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 CSimpleArrayEqualHelperFalse Class.

This class is a helper for the CSimpleArray class.

template <class T>  
class CSimpleArrayEqualHelperFalse


A derived class.

Public Methods

CSimpleArrayEqualHelperFalse::IsEqual(Static) Returns false.

This traits class is a complement to the CSimpleArray class. It always returns 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 an array containing elements to operate correctly for most methods but fail in a well-defined manner for methods that depend on comparisons such as CSimpleArray::Find.

Header: atlsimpcoll.h

Returns false.

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

Return Value

Returns false.


This method always returns false, and will call ATLASSERT with an argument of false if referenced. The purpose of CSimpleArrayEqualHelperFalse::IsEqual is to force methods using comparisons to fail in a well-defined manner when equality tests have not been adequately defined.

CSimpleArrayEqualHelper Class
Class Overview