Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.73 KB

csimplearrayequalhelper-class.md

File metadata and controls

67 lines (45 loc) · 1.73 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CSimpleArrayEqualHelper Class
CSimpleArrayEqualHelper Class
11/04/2016
CSimpleArrayEqualHelper
ATLSIMPCOLL/ATL::CSimpleArrayEqualHelper
ATLSIMPCOLL/ATL::CSimpleArrayEqualHelper::IsEqual
CSimpleArrayEqualHelper class
a2b55d89-78c9-42ef-842c-5304c6d20ad6

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