operator<
(<sample container>
)
Note
This topic is in the Microsoft C++ documentation as a nonfunctional example of containers used in the C++ Standard Library. For more information, see C++ Standard Library Containers.
Overloads operator< to compare two objects of class template Container.
Syntax
template <class Ty>
bool operator<(
const Container <Ty>& left,
const Container <Ty>& right);
Return Value
Returns lexicographical_compare(left.begin, left.end, right.begin, right.end)
.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for