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

This is the documentation for a snapshot of the master branch, built from commit 5002c2d6a2.
PrevUpHomeNext
object::operator==

Return true if two objects are equal.

Synopsis

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

friend bool
operator==(
    object const& lhs,
    object const& rhs);
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

Constant, or linear (worst case quadratic) in lhs.size().

Exception Safety

No-throw guarantee.

Convenience header <boost/json.hpp>


PrevUpHomeNext