MCPcopy Create free account
hub / github.com/catboost/catboost / FindProperBucket

Method FindProperBucket

library/cpp/containers/flat_hash/lib/table.h:273–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271
272 template <class K>
273 size_type FindProperBucket(size_type hs, const K& key) const {
274 return Probing::FindBucket(SizeFitter_, hs, bucket_count(), [&](size_type idx) {
275 if constexpr (NConcepts::RemovalContainerV<Container>) {
276 return Buckets_.IsEmpty(idx) ||
277 Buckets_.IsTaken(idx) && key_eq()(KeyGetter::Apply(Buckets_.Node(idx)), key);
278 } else {
279 return Buckets_.IsEmpty(idx) || key_eq()(KeyGetter::Apply(Buckets_.Node(idx)), key);
280 }
281 });
282 }
283
284 void RehashImpl() {
285 if constexpr (NConcepts::RemovalContainerV<Container>) {

Callers 1

RehashImplMethod · 0.45

Calls 6

bucket_countFunction · 0.50
key_eqFunction · 0.50
ApplyFunction · 0.50
IsEmptyMethod · 0.45
IsTakenMethod · 0.45
NodeMethod · 0.45

Tested by

no test coverage detected