diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-04-08 10:01:08 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-10-08 15:00:06 +0100 |
commit | a1fc4075fcdf028f2e1dc00ce515a947127e2667 (patch) | |
tree | c63504fbd93d40518e3f4756095215d59d93ecd5 | |
parent | a23653c6a683d6a1bb1278aaa32e35247d8c2740 (diff) | |
download | gcc-a1fc4075fcdf028f2e1dc00ce515a947127e2667.zip gcc-a1fc4075fcdf028f2e1dc00ce515a947127e2667.tar.gz gcc-a1fc4075fcdf028f2e1dc00ce515a947127e2667.tar.bz2 |
libstdc++: Reduce header dependencies of <algorithm> in C++20 [PR 92546]
The <bits/ranges_algobase.h> header doesn't need the stream and
streambuf iterators, so don't include the whole of <iterator>.
libstdc++-v3/ChangeLog:
PR libstdc++/92546
* include/bits/ranges_algobase.h: Replace <iterator> with a
subset of the headers it includes.
-rw-r--r-- | libstdc++-v3/include/bits/ranges_algobase.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/ranges_algobase.h b/libstdc++-v3/include/bits/ranges_algobase.h index cfbac83..c8c4d03 100644 --- a/libstdc++-v3/include/bits/ranges_algobase.h +++ b/libstdc++-v3/include/bits/ranges_algobase.h @@ -33,7 +33,9 @@ #if __cplusplus > 201703L #include <compare> -#include <iterator> +#include <bits/stl_iterator_base_types.h> +#include <bits/stl_iterator_base_funcs.h> +#include <bits/stl_iterator.h> #include <bits/ranges_base.h> // ranges::begin, ranges::range etc. #include <bits/invoke.h> // __invoke #include <bits/cpp_type_traits.h> // __is_byte |