Implement P0403R1, Literal suffixes for basic_string_view.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Sun, 13 Nov 2016 20:54:27 +0000 (22:54 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Sun, 13 Nov 2016 20:54:27 +0000 (22:54 +0200)
commit1701800580852987a23d00c45c3e0d1c30b095da
tree0c44d2f36ad4d9d5a494dbcdf9557fc3c380fee5
parent975672f3573329b6ef9f687b706c566944a5887f
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.

From-SVN: r242367
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