Name
operator< function template — Compares for less-than
Synopsis
template <typename T1, typename T2>
bool operator<(const pair<T1,T2>& a, const pair<T1,T2>& b);
Returns true
if a
is less than b
, assuming that the first
member is more significant than
second
. That is, the return value
is a.first
<
b.first
||
(!(b.first
<
a.first)
&&
a.second
<
b.second)
.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.