ATL Operators

This section contains the reference topics for the ATL global operators.

Operator Description
operator == Compares two CSid objects or SID structures for equality.
operator != Compares two CSid objects or SID structures for inequality.
operator < Tests if the CSid object or SID structure on the left side of the operator is less than the CSid object or SID structure on the right side (for C++ Standard Library compatibility).
operator > Tests if the CSid object or SID structure on the left side of the operator is greater than the CSid object or SID structure on the right side (for C++ Standard Library compatibility).
operator <= Tests if the CSid object or SID structure on the left side of the operator is less than or equal to the CSid object or SID structure on the right side (for C++ Standard Library compatibility).
operator >= Tests if the CSid object or SID structure on the left side of the operator is greater than or equal to the CSid object or SID structure on the right side (for C++ Standard Library compatibility).

Requirements

Header: atlsecurity.h.

operator ==

Compares CSid objects or SID (security identifier) structures for equality.

bool operator==(const CSid& lhs, const CSid& rhs) throw();

Parameters

lhs
The first CSid object or SID structure to compare.

rhs
The second CSid object or SID structure to compare.

Return Value

Returns TRUE if the objects are equal, FALSE if they are not equal.

operator !=

Compares CSid objects or SID (security identifier) structures for inequality.

bool operator==(const CSid& lhs, const CSid& rhs) throw();

Parameters

lhs
The first CSid object or SID structure to compare.

rhs
The second CSid object or SID structure to compare.

Return Value

Returns TRUE if the objects are not equal, FALSE if they are equal.

operator <

Tests if the CSid object or SID structure on the left side of the operator is less than the CSid object or SID structure on the right side (for C++ Standard Library compatibility).

bool operator<(const CSid& lhs, const CSid& rhs) throw();

Parameters

lhs
The first CSid object or SID structure to compare.

rhs
The second CSid object or SID structure to compare.

Return Value

Returns TRUE if the address of the lhs object is less than the address of the rhs object, FALSE otherwise.

Remarks

This operator acts on the address of the CSid object or SID structure, and is implemented to provide compatibility with C++ Standard Library collection classes.

operator >

Tests if the CSid object or SID structure on the left side of the operator is greater than the CSid object or SID structure on the right side (for C++ Standard Library compatibility).

bool operator<(const CSid& lhs, const CSid& rhs) throw();

Parameters

lhs
The first CSid object or SID structure to compare.

rhs
The second CSid object or SID structure to compare.

Return Value

Returns TRUE if the address of the lhs is greater than the address of the rhs, FALSE otherwise.

Remarks

This operator acts on the address of the CSid object or SID structure, and is implemented to provide compatibility with C++ Standard Library collection classes.

operator <=

Tests if the CSid object or SID structure on the left side of the operator is less than or equal to the CSid object or SID structure on the right side (for C++ Standard Library compatibility).

bool operator<(const CSid& lhs, const CSid& rhs) throw();

Parameters

lhs
The first CSid object or SID structure to compare.

rhs
The second CSid object or SID structure to compare.

Return Value

Returns TRUE if the address of the lhs is less than or equal to the address of the rhs, FALSE otherwise.

Remarks

This operator acts on the address of the CSid object or SID structure, and is implemented to provide compatibility with C++ Standard Library collection classes.

operator >=

Tests if the CSid object or SID structure on the left side of the operator is greater than or equal to the CSid object or SID structure on the right side (for C++ Standard Library compatibility).

bool operator<(const CSid& lhs, const CSid& rhs) throw();

Parameters

lhs
The first CSid object or SID structure to compare.

rhs
The second CSid object or SID structure to compare.

Return Value

Returns TRUE if the address of the lhs is greater than or equal to the address of the rhs, FALSE otherwise.

Remarks

This operator acts on the address of the CSid object or SID structure, and is implemented to provide compatibility with C++ Standard Library collection classes.