operators
- Article
- 12/07/2021
- 5 minutes to read
-
-
Is this page helpful?
Please rate your experience
Yes
No
Any additional feedback?
Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy.
Submit
Thank you.
In this article
operator!=
Tests if the list object on the left side of the operator is not equal to the list object on the right side.
bool operator!=[ const list& left, const list& right];Parameters
left
An object of type list.
right
An object of type list.
Return Value
true if the lists are not equal; false if the lists are equal.
Remarks
The comparison between list objects is based on a pairwise comparison of their elements. Two lists are equal if they have the same number of elements and their respective elements have the same values. Otherwise, they are unequal.