MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / TableSize

Method TableSize

libapp2sys/prebuilt/include/google/protobuf/map.h:1291–1293  ·  view source on GitHub ↗

Return a power of two no less than max(kMinTableSize, n). Assumes either n < kMinTableSize or n is a power of two.

Source from the content-addressed store, hash-verified

1289 // Return a power of two no less than max(kMinTableSize, n).
1290 // Assumes either n < kMinTableSize or n is a power of two.
1291 size_type TableSize(size_type n) {
1292 return n < kMinTableSize ? kMinTableSize : n;
1293 }
1294
1295 // Use alloc_ to allocate an array of n objects of type U.
1296 template <typename U>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected