Minor header reorganization for unordered containers
authorJonathan Wakely <jwakely@redhat.com>
Mon, 30 Oct 2017 14:54:28 +0000 (14:54 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 30 Oct 2017 14:54:28 +0000 (14:54 +0000)
* include/bits/hashtable_policy.h: Include <tuple>.
* include/std/unordered_map: Only include <bits/stl_pair.h> instead
of <utility> and <tuple>.
* include/std/unordered_set: Likewise.

From-SVN: r254223

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable_policy.h
libstdc++-v3/include/std/unordered_map
libstdc++-v3/include/std/unordered_set

index 994eca814c71e2aff5a7f6268e92d3ae2b88f343..7bafbd4b5ec12818cbff88324e8dba0a31f15179 100644 (file)
@@ -1,3 +1,10 @@
+2017-10-30  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/hashtable_policy.h: Include <tuple>.
+       * include/std/unordered_map: Only include <bits/stl_pair.h> instead
+       of <utility> and <tuple>.
+       * include/std/unordered_set: Likewise.
+
 2017-10-30  Ville Voutilainen  <ville.voutilainen@gmail.com>
 
        Implement LWG 2485
index da6d49c96c45bf93cd38e28c8c26714ca83ea72e..e19f92abd76f0d39067776d95e0157b1d9da8147 100644 (file)
@@ -31,7 +31,9 @@
 #ifndef _HASHTABLE_POLICY_H
 #define _HASHTABLE_POLICY_H 1
 
-#include <bits/stl_algobase.h> // for std::min.
+#include <tuple>               // for std::tuple, std::forward_as_tuple
+#include <cstdint>             // for std::uint_fast64_t
+#include <bits/stl_algobase.h> // for std::min.
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 2cdcd37793617437b50ac1ba0bd7f5d0a7c7e979..80773235b653335afdcd16d4512f50bd9a82d574 100644 (file)
 # include <bits/c++0x_warning.h>
 #else
 
-#include <utility>
 #include <type_traits>
 #include <initializer_list>
-#include <tuple>
 #include <bits/allocator.h>
 #include <ext/alloc_traits.h>
 #include <ext/aligned_buffer.h>
+#include <bits/stl_pair.h>
 #include <bits/stl_function.h> // equal_to, _Identity, _Select1st
 #include <bits/functional_hash.h>
 #include <bits/hashtable.h>
index 2646c0f2f00551d338910664561fc35c093cabf2..faf7ebe23ae857ce0651647c9835d2366397fff0 100644 (file)
 # include <bits/c++0x_warning.h>
 #else
 
-#include <utility>
 #include <type_traits>
 #include <initializer_list>
-#include <tuple>
 #include <bits/allocator.h>
 #include <ext/alloc_traits.h>
 #include <ext/aligned_buffer.h>
+#include <bits/stl_pair.h>
 #include <bits/stl_function.h> // equal_to, _Identity, _Select1st
 #include <bits/functional_hash.h>
 #include <bits/hashtable.h>