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

<sample container>
begin
end