mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 09:00:38 +08:00
replace "container_internal" with the shorter "priv"
This commit is contained in:
Vendored
+9
-9
@@ -27,8 +27,8 @@
|
||||
// This library supports std::unordered_{set,map}, dense_hash_{set,map} and
|
||||
// phmap::{flat,node,string}_hash_{set,map}.
|
||||
|
||||
#ifndef PHMAP_CONTAINER_INTERNAL_HASHTABLE_DEBUG_H_
|
||||
#define PHMAP_CONTAINER_INTERNAL_HASHTABLE_DEBUG_H_
|
||||
#ifndef PHMAP_PRIV_HASHTABLE_DEBUG_H_
|
||||
#define PHMAP_PRIV_HASHTABLE_DEBUG_H_
|
||||
|
||||
#include <cstddef>
|
||||
#include <algorithm>
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <vector>
|
||||
|
||||
namespace phmap {
|
||||
namespace container_internal {
|
||||
namespace priv {
|
||||
|
||||
// Returns the number of probes required to lookup `key`. Returns 0 for a
|
||||
// search with no collisions. Higher values mean more hash collisions occurred;
|
||||
@@ -45,7 +45,7 @@ namespace container_internal {
|
||||
template <typename C>
|
||||
size_t GetHashtableDebugNumProbes(
|
||||
const C& c, const typename C::key_type& key) {
|
||||
return phmap::container_internal::hashtable_debug_internal::
|
||||
return phmap::priv::hashtable_debug_internal::
|
||||
HashtableDebugAccess<C>::GetNumProbes(c, key);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ std::vector<size_t> GetHashtableDebugNumProbesHistogram(const C& container) {
|
||||
for (auto it = container.begin(); it != container.end(); ++it) {
|
||||
size_t num_probes = GetHashtableDebugNumProbes(
|
||||
container,
|
||||
phmap::container_internal::hashtable_debug_internal::GetKey<C>(*it, 0));
|
||||
phmap::priv::hashtable_debug_internal::GetKey<C>(*it, 0));
|
||||
v.resize((std::max)(v.size(), num_probes + 1));
|
||||
v[num_probes]++;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ HashtableDebugProbeSummary GetHashtableDebugProbeSummary(const C& container) {
|
||||
// and not freed.
|
||||
template <typename C>
|
||||
size_t AllocatedByteSize(const C& c) {
|
||||
return phmap::container_internal::hashtable_debug_internal::
|
||||
return phmap::priv::hashtable_debug_internal::
|
||||
HashtableDebugAccess<C>::AllocatedByteSize(c);
|
||||
}
|
||||
|
||||
@@ -96,11 +96,11 @@ size_t AllocatedByteSize(const C& c) {
|
||||
// and `c.size()` is equal to `num_elements`.
|
||||
template <typename C>
|
||||
size_t LowerBoundAllocatedByteSize(size_t num_elements) {
|
||||
return phmap::container_internal::hashtable_debug_internal::
|
||||
return phmap::priv::hashtable_debug_internal::
|
||||
HashtableDebugAccess<C>::LowerBoundAllocatedByteSize(num_elements);
|
||||
}
|
||||
|
||||
} // namespace container_internal
|
||||
} // namespace priv
|
||||
} // namespace phmap
|
||||
|
||||
#endif // PHMAP_CONTAINER_INTERNAL_HASHTABLE_DEBUG_H_
|
||||
#endif // PHMAP_PRIV_HASHTABLE_DEBUG_H_
|
||||
|
||||
Reference in New Issue
Block a user