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.
This commit is contained in:
Jonathan Wakely 2021-04-08 10:01:08 +01:00
parent a23653c6a6
commit a1fc4075fc

View File

@ -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