Reduce header dependencies in <iterator>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 14 May 2019 12:47:39 +0000 (13:47 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 14 May 2019 12:47:39 +0000 (13:47 +0100)
* include/std/iterator: Include <iosfwd> instead of <istream> and
<ostream>.

From-SVN: r271169

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/iterator

index 808af37a374fa0e39d8ff1997ed75b5efccb719d..5d173a5bbde80c38403e8d1ddda70d83c0c6beca 100644 (file)
@@ -1,5 +1,8 @@
 2019-05-14  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/std/iterator: Include <iosfwd> instead of <istream> and
+       <ostream>.
+
        * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)):
        Remove unused, non-standard function.
 
index 9d9e19c4c6bb67fe8eba1085d6e158d1ec2a3ae1..28e7c65a9e579814453ea8891fdabf96c0f04aad 100644 (file)
@@ -61,8 +61,7 @@
 #include <bits/stl_iterator_base_types.h>
 #include <bits/stl_iterator_base_funcs.h>
 #include <bits/stl_iterator.h>
-#include <ostream>
-#include <istream>
+#include <iosfwd>
 #include <bits/stream_iterator.h>
 #include <bits/streambuf_iterator.h>
 #include <bits/range_access.h>