Home | History | Annotate | Download | only in base

Lines Matching refs:other

72     bool operator==(const BaseIterator& other) const {
73 return hash_set_ == other.hash_set_ && this->index_ == other.index_;
76 bool operator!=(const BaseIterator& other) const {
77 return !(*this == other);
169 HashSet(const HashSet& other) noexcept
170 : allocfn_(other.allocfn_),
171 hashfn_(other.hashfn_),
172 emptyfn_(other.emptyfn_),
173 pred_(other.pred_),
174 num_elements_(other.num_elements_),
176 elements_until_expand_(other.elements_until_expand_),
179 min_load_factor_(other.min_load_factor_),
180 max_load_factor_(other.max_load_factor_) {
181 AllocateStorage(other.NumBuckets());
183 ElementForIndex(i) = other.data_[i];
189 HashSet(HashSet&& other) noexcept
190 : allocfn_(std::move(other.allocfn_)),
191 hashfn_(std::move(other.hashfn_)),
192 emptyfn_(std::move(other.emptyfn_)),
193 pred_(std::move(other.pred_)),
194 num_elements_(other.num_elements_),
195 num_buckets_(other.num_buckets_),
196 elements_until_expand_(other.elements_until_expand_),
197 owns_data_(other.owns_data_),
198 data_(other.data_),
199 min_load_factor_(other.min_load_factor_),
200 max_load_factor_(other.max_load_factor_) {
201 other.num_elements_ = 0u;
202 other.num_buckets_ = 0u;
203 other.elements_until_expand_ = 0u;
204 other.owns_data_ = false;
205 other.data_ = nullptr;
261 HashSet& operator=(HashSet&& other) noexcept {
262 HashSet(std::move(other)).swap(*this);
266 HashSet& operator=(const HashSet& other) noexcept {
267 HashSet(other).swap(*this); // NOLINT(runtime/explicit) - a case of lint gone mad.
406 void swap(HashSet& other) {
409 swap(allocfn_, other.allocfn_);
410 swap(hashfn_, other.hashfn_);
411 swap(emptyfn_, other.emptyfn_);
412 swap(pred_, other.pred_);
413 std::swap(data_, other.data_);
414 std::swap(num_buckets_, other.num_buckets_);
415 std::swap(num_elements_, other.num_elements_);
416 std::swap(elements_until_expand_, other.elements_until_expand_);
417 std::swap(min_load_factor_, other.min_load_factor_);
418 std::swap(max_load_factor_, other.max_load_factor_);
419 std::swap(owns_data_, other.owns_data_);