Lines Matching refs:rhs
216 MemoryPoolAllocator(const MemoryPoolAllocator& rhs) RAPIDJSON_NOEXCEPT : in MemoryPoolAllocator() argument
217 chunk_capacity_(rhs.chunk_capacity_), in MemoryPoolAllocator()
218 baseAllocator_(rhs.baseAllocator_), in MemoryPoolAllocator()
219 shared_(rhs.shared_) in MemoryPoolAllocator()
224 MemoryPoolAllocator& operator=(const MemoryPoolAllocator& rhs) RAPIDJSON_NOEXCEPT
226 RAPIDJSON_NOEXCEPT_ASSERT(rhs.shared_->refcount > 0);
227 ++rhs.shared_->refcount;
229 baseAllocator_ = rhs.baseAllocator_;
230 chunk_capacity_ = rhs.chunk_capacity_;
231 shared_ = rhs.shared_;
236 MemoryPoolAllocator(MemoryPoolAllocator&& rhs) RAPIDJSON_NOEXCEPT : in MemoryPoolAllocator() argument
237 chunk_capacity_(rhs.chunk_capacity_), in MemoryPoolAllocator()
238 baseAllocator_(rhs.baseAllocator_), in MemoryPoolAllocator()
239 shared_(rhs.shared_) in MemoryPoolAllocator()
241 RAPIDJSON_NOEXCEPT_ASSERT(rhs.shared_->refcount > 0); in MemoryPoolAllocator()
242 rhs.shared_ = 0; in MemoryPoolAllocator()
244 MemoryPoolAllocator& operator=(MemoryPoolAllocator&& rhs) RAPIDJSON_NOEXCEPT
246 RAPIDJSON_NOEXCEPT_ASSERT(rhs.shared_->refcount > 0);
248 baseAllocator_ = rhs.baseAllocator_;
249 chunk_capacity_ = rhs.chunk_capacity_;
250 shared_ = rhs.shared_;
251 rhs.shared_ = 0;
375 bool operator==(const MemoryPoolAllocator& rhs) const RAPIDJSON_NOEXCEPT {
377 RAPIDJSON_NOEXCEPT_ASSERT(rhs.shared_->refcount > 0);
378 return shared_ == rhs.shared_;
381 bool operator!=(const MemoryPoolAllocator& rhs) const RAPIDJSON_NOEXCEPT {
382 return !operator==(rhs);
477 StdAllocator(const StdAllocator& rhs) RAPIDJSON_NOEXCEPT :
478 allocator_type(rhs),
479 baseAllocator_(rhs.baseAllocator_)
483 StdAllocator(const StdAllocator<U, BaseAllocator>& rhs) RAPIDJSON_NOEXCEPT :
484 allocator_type(rhs),
485 baseAllocator_(rhs.baseAllocator_)
489 StdAllocator(StdAllocator&& rhs) RAPIDJSON_NOEXCEPT :
490 allocator_type(std::move(rhs)),
491 baseAllocator_(std::move(rhs.baseAllocator_))
604 bool operator==(const StdAllocator<U, BaseAllocator>& rhs) const RAPIDJSON_NOEXCEPT
606 return baseAllocator_ == rhs.baseAllocator_;
609 bool operator!=(const StdAllocator<U, BaseAllocator>& rhs) const RAPIDJSON_NOEXCEPT
611 return !operator==(rhs);
652 StdAllocator(const StdAllocator& rhs) RAPIDJSON_NOEXCEPT :
653 allocator_type(rhs),
654 baseAllocator_(rhs.baseAllocator_)
658 StdAllocator(const StdAllocator<U, BaseAllocator>& rhs) RAPIDJSON_NOEXCEPT :
659 allocator_type(rhs),
660 baseAllocator_(rhs.baseAllocator_)