| 369 | } |
| 370 | |
| 371 | ABSL_MUST_USE_RESULT |
| 372 | inline bool IsUniqueRef(const ReferenceCount& refcount) noexcept { |
| 373 | const auto count = refcount.strong_refcount_.load(std::memory_order_acquire); |
| 374 | ABSL_DCHECK_GT(count, 0); |
| 375 | ABSL_ASSUME(count > 0); |
| 376 | return count == 1; |
| 377 | } |
| 378 | |
| 379 | ABSL_MUST_USE_RESULT |
| 380 | inline bool IsUniqueRef(const ReferenceCount* absl_nullable refcount) noexcept { |