]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Refactor includes for unordered containers
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 May 2022 11:17:01 +0000 (12:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 May 2022 09:44:45 +0000 (10:44 +0100)
commit692643c3ed3b7b82dde6b890c76b611c3ea371f0
treeede86ab23bff44ec1cdc6d35ee48a3bdae1d7a1a
parent650eadd63022baf6993124d7e9b64141b908459a
libstdc++: Refactor includes for unordered containers

This moves some #include directives to the relevant place. For example,
<bits/hashtable_policy.h> needs <bits/stl_pair.h> so should include it
directly instead of relying on <unordered_map> and <unordered_set> to do
so first.

libstdc++-v3/ChangeLog:

* include/bits/functional_hash.h (__is_fast_hash): Add doxygen
comment.
* include/bits/hashtable.h: Do not include <bits/stl_function.h>
here.
* include/bits/hashtable_policy.h: Include <bits/stl_pair.h> and
<bits/functional_hash.h>.
* include/bits/unordered_map.h: Include required headers.
* include/bits/unordered_set.h: Likewise.
* include/std/unordered_map: Do not include headers for indirect
dependencies.
* include/std/unordered_set: Likewise.
libstdc++-v3/include/bits/functional_hash.h
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/include/bits/hashtable_policy.h
libstdc++-v3/include/bits/unordered_map.h
libstdc++-v3/include/bits/unordered_set.h
libstdc++-v3/include/std/unordered_map
libstdc++-v3/include/std/unordered_set
This page took 0.06417 seconds and 6 git commands to generate.