Skip to content

Commit 33a2662

Browse files
chris-durandsalkinium
authored andcommitted
Remove dependency of string_view on iostreams
1 parent 4ba3d74 commit 33a2662

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

include/string_view

-10
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@
3737

3838
#if __cplusplus >= 201703L
3939

40-
#include <iosfwd>
4140
#include <bits/char_traits.h>
4241
#include <bits/functional_hash.h>
4342
#include <bits/range_access.h>
44-
#include <bits/ostream_insert.h>
4543
#include <ext/numeric_traits.h>
4644

4745
namespace std _GLIBCXX_VISIBILITY(default)
@@ -613,14 +611,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
613611
{ return __x.compare(__y) >= 0; }
614612
#endif // three-way comparison
615613

616-
// [string.view.io], Inserters and extractors
617-
template<typename _CharT, typename _Traits>
618-
inline basic_ostream<_CharT, _Traits>&
619-
operator<<(basic_ostream<_CharT, _Traits>& __os,
620-
basic_string_view<_CharT,_Traits> __str)
621-
{ return __ostream_insert(__os, __str.data(), __str.size()); }
622-
623-
624614
// basic_string_view typedef names
625615

626616
using string_view = basic_string_view<char>;

0 commit comments

Comments
 (0)