From 02a2c6303f223f529509fffa6ea1ce40054f3e02 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 30 Oct 2017 14:54:28 +0000 Subject: [PATCH] Minor header reorganization for unordered containers * include/bits/hashtable_policy.h: Include . * include/std/unordered_map: Only include instead of and . * include/std/unordered_set: Likewise. From-SVN: r254223 --- libstdc++-v3/ChangeLog | 7 +++++++ libstdc++-v3/include/bits/hashtable_policy.h | 4 +++- libstdc++-v3/include/std/unordered_map | 3 +-- libstdc++-v3/include/std/unordered_set | 3 +-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 994eca8..7bafbd4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2017-10-30 Jonathan Wakely + + * include/bits/hashtable_policy.h: Include . + * include/std/unordered_map: Only include instead + of and . + * include/std/unordered_set: Likewise. + 2017-10-30 Ville Voutilainen Implement LWG 2485 diff --git a/libstdc++-v3/include/bits/hashtable_policy.h b/libstdc++-v3/include/bits/hashtable_policy.h index da6d49c..e19f92a 100644 --- a/libstdc++-v3/include/bits/hashtable_policy.h +++ b/libstdc++-v3/include/bits/hashtable_policy.h @@ -31,7 +31,9 @@ #ifndef _HASHTABLE_POLICY_H #define _HASHTABLE_POLICY_H 1 -#include // for std::min. +#include // for std::tuple, std::forward_as_tuple +#include // for std::uint_fast64_t +#include // for std::min. namespace std _GLIBCXX_VISIBILITY(default) { diff --git a/libstdc++-v3/include/std/unordered_map b/libstdc++-v3/include/std/unordered_map index 2cdcd37..8077323 100644 --- a/libstdc++-v3/include/std/unordered_map +++ b/libstdc++-v3/include/std/unordered_map @@ -35,13 +35,12 @@ # include #else -#include #include #include -#include #include #include #include +#include #include // equal_to, _Identity, _Select1st #include #include diff --git a/libstdc++-v3/include/std/unordered_set b/libstdc++-v3/include/std/unordered_set index 2646c0f..faf7ebe 100644 --- a/libstdc++-v3/include/std/unordered_set +++ b/libstdc++-v3/include/std/unordered_set @@ -35,13 +35,12 @@ # include #else -#include #include #include -#include #include #include #include +#include #include // equal_to, _Identity, _Select1st #include #include -- 2.7.4