Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.17 KB

operator-less-than-sample-container.md

File metadata and controls

33 lines (25 loc) · 1.17 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: operator< (<sample container>)
operator< (<sample container>)
11/04/2016
std::operator<
operator<
std.<
<
std.operator<
std::<
< operator, comparing specific objects
operator<, valarrays
< operator
operator <, valarrays
31027dd6-53be-428b-b950-1dcb25393597

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