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 994eca8..7bafbd4 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 da6d49c..e19f92a 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 2cdcd37..8077323 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 2646c0f..faf7ebe 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>