Template Function coal::shared_ptrs_are_equal

Function Documentation

template<typename T>
bool coal::shared_ptrs_are_equal(const std::shared_ptr<T> &ptr1, const std::shared_ptr<T> &ptr2)

Compares two std::shared_ptr by value. Returns true if both are null, both point to the same object, or both are non-null and their pointees compare equal.