cpp/locale/locale/operator()

Compares two string arguments and  according to the lexicographic comparison rules defined by this locale's  facet. This operator allows any locale object that has a collate facet to be used as a binary predicate in the standard algorithms (such as std) and ordered containers (such as std).

Return value
if is lexicographically less than,  otherwise.