operator==#

Fully qualified name: carb::operator==

Defined in carb/IObject.h

template<class T, class U>
bool carb::operator==(
const ObjectPtr<T> &lhs,
const U *rhs,
) noexcept#

Checks equality of an ObjectPtr type and a raw pointer.

Parameters:
  • lhs[in] An ObjectPtr type to compare.

  • rhs[in] A raw pointer to compare.

Returns:

true if the two objects identify the same underlying object. Returns false otherwise.