Implement P0403R1, Literal suffixes for basic_string_view.
commit8503094a0a9b57558e81b80f90213e4e508576e3
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Nov 2016 20:54:27 +0000 (13 20:54 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Nov 2016 20:54:27 +0000 (13 20:54 +0000)
tree0c44d2f36ad4d9d5a494dbcdf9557fc3c380fee5
parent9bf6a8e0b903bf80144f56b9c2951f4f221ed1e0
Implement P0403R1, Literal suffixes for basic_string_view.
* include/std/string_view
(operator""sv(const char*, size_t)): New.
(operator""sv(const wchar_t*, size_t)): Likewise.
(operator""sv(const char16_t*, size_t)): Likewise.
(operator""sv(const char32_t*, size_t)): Likewise.
* testsuite/21_strings/basic_string_view/literals/types.cc: New.
* testsuite/21_strings/basic_string_view/literals/values.cc: Likewise.
* testsuite/experimental/string_view/literals/values.cc: Add
tests for literals with embedded NULs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242367 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/string_view
libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/string_view/literals/values.cc