PR libstdc++/86008 add std::quoted support for string_view
authorJonathan Wakely <jwakely@redhat.com>
Wed, 6 Jun 2018 06:05:07 +0000 (07:05 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 6 Jun 2018 06:05:07 +0000 (07:05 +0100)
commit7db54ccd8a2b8a2c89f9cf38f716974aac27fa62
tree2620bea47db82834850325b65d80301396838b70
parent5ae566b665add2c6ac7b695b8d533a1b15a08b04
PR libstdc++/86008 add std::quoted support for string_view

PR libstdc++/86008
* include/bits/quoted_string.h (_Quoted_string<basic_string_view, C>):
Define new partial specialization.
* include/std/iomanip (quoted(basic_string_view<C,T>, C, C)): Define
new overload.
(operator<<(basic_ostream<C,T>&, const _Quoted_string<S,C>&)): Use
value not reference for iteration.
* testsuite/27_io/manipulators/standard/char/quoted.cc: Adjust
comment.
* testsuite/27_io/manipulators/standard/char/quoted_sv.cc: New test.
* testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: Adjust
comment.

From-SVN: r261227
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/quoted_string.h
libstdc++-v3/include/std/iomanip
libstdc++-v3/testsuite/27_io/manipulators/standard/char/quoted.cc
libstdc++-v3/testsuite/27_io/manipulators/standard/char/quoted_sv.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/manipulators/standard/wchar_t/quoted.cc
libstdc++-v3/testsuite/27_io/manipulators/standard/wchar_t/quoted_sv.cc [new file with mode: 0644]