less


template <class t, class less>
struct less
{
    bool operator()(const t& a, const t& b) const { return a < b; }
};

This class template is used to compare two types.

Parameters

const t& a

A reference to the first parameter to participate in the comparison.

const t& b

A reference to the second parameter to participate in the comparison.

Return

bool

true The first parameter is less than the second parameter.
false The first parameter is greater than or equal to the second parameter.