Documentation Home >> Headers >> <jss/experimental_atomic.hpp> Header >> std::experimental::shared_ptr >> std::experimental::shared_ptr equality comparison operator

Compare two std::experimental::shared_ptr objects for equality.

template <typename LhsTarget, typename RhsTarget>
bool operator==(
    const shared_ptr<LhsTarget>& lhs,
    const shared_ptr<RhsTarget>& rhs);

Returns:

lhs.get()==rhs.get()

Throws:

Nothing.

Header

#include <experimental/atomic>

See Also