description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: operator< (<sample container>) |
operator< (<sample container>) |
11/04/2016 |
|
|
31027dd6-53be-428b-b950-1dcb25393597 |
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.
template <class Ty>
bool operator<(
const Container <Ty>& left,
const Container <Ty>& right);
Returns lexicographical_compare(left.begin, left.end, right.begin, right.end)
.