Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

operator>

operator>

Check if lhs is greater than rhs.

Synopsis

Defined in header <boost/json/string.hpp>.

bool
operator>(
    string const& lhs,
    string const& rhs) noexcept;

Description

A lexicographical comparison is used.

Complexity

Linear in lhs.size() + rhs.size().

Exception Safety

No-throw guarantee.

Convenience header <boost/json.hpp>