MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / operator==

Method operator==

include/sonic/allocator.h:422–426  ·  view source on GitHub ↗

! Compare (equality) with another MemoryPoolAllocator

Source from the content-addressed store, hash-verified

420
421 // ! Compare (equality) with another MemoryPoolAllocator
422 bool operator==(const MemoryPoolAllocator& rhs) const noexcept {
423 sonic_assert(shared_->refcount > 0);
424 sonic_assert(rhs.shared_->refcount > 0);
425 return shared_ == rhs.shared_;
426 }
427 // ! Compare (inequality) with another MemoryPoolAllocator
428 bool operator!=(const MemoryPoolAllocator& rhs) const noexcept {
429 return !operator==(rhs);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected