operator==

Compare two objects for equality.

Synopsis

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

bool
operator==(
    object const& lhs,
    object const& rhs) noexcept;

Description

Objects are equal when their sizes are the same, and when for each key in lhs there is a matching key in rhs with the same value.

Complexity

Average case linear and worst case quadratic in lhs.size().

Exception Safety

No-throw guarantee.

Convenience header <boost/json.hpp>