diff --git a/include/tsl/robin_growth_policy.h b/include/tsl/robin_growth_policy.h index 2dc9c40..5d82f60 100644 --- a/include/tsl/robin_growth_policy.h +++ b/include/tsl/robin_growth_policy.h @@ -81,8 +81,7 @@ #define TSL_RH_UNUSED(x) static_cast(x) -namespace tsl { -namespace rh { +namespace tsl::rh { /** * Grow the hash table by a factor of GrowthFactor keeping the bucket count to a @@ -409,7 +408,6 @@ class prime_growth_policy { "The type of m_iprime is not big enough."); }; -} // namespace rh -} // namespace tsl +} // namespace tsl::rh #endif diff --git a/include/tsl/robin_hash.h b/include/tsl/robin_hash.h index 163e0e2..acf9930 100644 --- a/include/tsl/robin_hash.h +++ b/include/tsl/robin_hash.h @@ -42,9 +42,7 @@ #include "robin_growth_policy.h" -namespace tsl { - -namespace detail_robin_hash { +namespace tsl::detail_robin_hash { template struct make_void { @@ -1582,8 +1580,6 @@ class robin_hash : private Hash, private KeyEqual, private GrowthPolicy { bool m_try_shrink_on_next_insert; }; -} // namespace detail_robin_hash - -} // namespace tsl +} // namespace tsl::detail_robin_hash #endif