| 34 | // are equal. |
| 35 | template <typename T> |
| 36 | bool SharedPtrEquals(const std::shared_ptr<T>& left, const std::shared_ptr<T>& right) { |
| 37 | if (left == right) return true; |
| 38 | if (left == NULLPTR || right == NULLPTR) return false; |
| 39 | return left->Equals(*right); |
| 40 | } |
| 41 | |
| 42 | } // namespace internal |
| 43 | } // namespace arrow |