Partager via


ATL Operators

 

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 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 STL 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 STL 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 STL 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 STL compatibility).

These operators are all defined in the file 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 STL 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 STL 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 STL 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 STL 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 STL 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 STL 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 STL 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 STL collection classes.