Lines Matching refs:other
56 HashSetIterator(const HashSetIterator<OtherElem, OtherHashSetType>& other) in HashSetIterator() argument
57 : index_(other.index_), hash_set_(other.hash_set_) {} in HashSetIterator()
62 bool operator==(const HashSetIterator& other) const {
63 return hash_set_ == other.hash_set_ && this->index_ == other.index_;
66 bool operator!=(const HashSetIterator& other) const {
67 return !(*this == other);
223 HashSet(const HashSet& other) noexcept in HashSet() argument
224 : allocfn_(other.allocfn_), in HashSet()
225 hashfn_(other.hashfn_), in HashSet()
226 emptyfn_(other.emptyfn_), in HashSet()
227 pred_(other.pred_), in HashSet()
228 num_elements_(other.num_elements_), in HashSet()
230 elements_until_expand_(other.elements_until_expand_), in HashSet()
233 min_load_factor_(other.min_load_factor_), in HashSet()
234 max_load_factor_(other.max_load_factor_) { in HashSet()
235 AllocateStorage(other.NumBuckets()); in HashSet()
237 ElementForIndex(i) = other.data_[i]; in HashSet()
243 HashSet(HashSet&& other) noexcept in HashSet() argument
244 : allocfn_(std::move(other.allocfn_)), in HashSet()
245 hashfn_(std::move(other.hashfn_)), in HashSet()
246 emptyfn_(std::move(other.emptyfn_)), in HashSet()
247 pred_(std::move(other.pred_)), in HashSet()
248 num_elements_(other.num_elements_), in HashSet()
249 num_buckets_(other.num_buckets_), in HashSet()
250 elements_until_expand_(other.elements_until_expand_), in HashSet()
251 owns_data_(other.owns_data_), in HashSet()
252 data_(other.data_), in HashSet()
253 min_load_factor_(other.min_load_factor_), in HashSet()
254 max_load_factor_(other.max_load_factor_) { in HashSet()
255 other.num_elements_ = 0u; in HashSet()
256 other.num_buckets_ = 0u; in HashSet()
257 other.elements_until_expand_ = 0u; in HashSet()
258 other.owns_data_ = false; in HashSet()
259 other.data_ = nullptr; in HashSet()
315 HashSet& operator=(HashSet&& other) noexcept {
316 HashSet(std::move(other)).swap(*this); // NOLINT [runtime/explicit] [5]
320 HashSet& operator=(const HashSet& other) noexcept {
321 HashSet(other).swap(*this); // NOLINT(runtime/explicit) - a case of lint gone mad.
480 void swap(HashSet& other) { in swap() argument
483 swap(allocfn_, other.allocfn_); in swap()
484 swap(hashfn_, other.hashfn_); in swap()
485 swap(emptyfn_, other.emptyfn_); in swap()
486 swap(pred_, other.pred_); in swap()
487 std::swap(data_, other.data_); in swap()
488 std::swap(num_buckets_, other.num_buckets_); in swap()
489 std::swap(num_elements_, other.num_elements_); in swap()
490 std::swap(elements_until_expand_, other.elements_until_expand_); in swap()
491 std::swap(min_load_factor_, other.min_load_factor_); in swap()
492 std::swap(max_load_factor_, other.max_load_factor_); in swap()
493 std::swap(owns_data_, other.owns_data_); in swap()