Name

operator< function template — Compares sets for less-than

Synopsis

template <typename Key, typename T, typename C, typename A>
bool operator<(const set<Key,T,C,A>& x, const set<Key,T,C,A>& y);
template <typename Key, typename T, typename C, typename A>
bool operator<(const multiset<Key,T,C,A>& x, const multiset<Key,T,C,A>& y);

The < operator determines whether x is less than y using the same algorithm as lexicographical_compare(x.begin( ), x.end( ), y.begin( ), y.end( )).