Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QHashPrivate::GrowthPolicy Namespace Reference

Functions

constexpr size_t bucketsForCapacity (size_t requestedCapacity) noexcept
 
constexpr size_t bucketForHash (size_t nBuckets, size_t hash) noexcept
 

Function Documentation

◆ bucketForHash()

constexpr size_t QHashPrivate::GrowthPolicy::bucketForHash ( size_t nBuckets,
size_t hash )
inlineconstexprnoexcept

Definition at line 437 of file qhash.h.

References hash.

Referenced by QHashPrivate::Data< Node >::erase(), and QHashPrivate::Data< Node >::findBucket().

+ Here is the caller graph for this function:

◆ bucketsForCapacity()

constexpr size_t QHashPrivate::GrowthPolicy::bucketsForCapacity ( size_t requestedCapacity)
inlineconstexprnoexcept

Definition at line 417 of file qhash.h.

References QHashPrivate::SpanConstants::NEntries, and qCountLeadingZeroBits().

Referenced by QHashPrivate::Data< Node >::Data(), QHashPrivate::Data< Node >::Data(), and QHashPrivate::Data< Node >::rehash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: