From: Jonathan Wakely Date: Mon, 30 Oct 2017 14:54:28 +0000 (+0000) Subject: Minor header reorganization for unordered containers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02a2c6303f223f529509fffa6ea1ce40054f3e02;p=gcc.git 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 994eca814c7..7bafbd4b5ec 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 da6d49c96c4..e19f92abd76 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 2cdcd377936..80773235b65 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 2646c0f2f00..faf7ebe23ae 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