PR libstdc++/83511 add default argument to basic_string_view::substr
authorJonathan Wakely <jwakely@redhat.com>
Wed, 28 Nov 2018 16:53:35 +0000 (16:53 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 28 Nov 2018 16:53:35 +0000 (16:53 +0000)
commit0a1369fa9598019354484651f1a16dd8cf7d70c9
treef5c28280a8914c96d056de241eb2903b4d29fa74
parent188588e443008dd7795947db60b68571ed724fe3
PR libstdc++/83511 add default argument to basic_string_view::substr

PR libstdc++/83511
* include/std/string_view (basic_string_view::substr): Add default
argument to first parameter.
* include/experimental/string_view (basic_string_view::substr):
Likewise.
* testsuite/21_strings/basic_string_view/operations/substr/char/
83511.cc: New test.
* testsuite/21_strings/basic_string_view/operations/substr/wchar_t/
83511.cc: New test.
* testsuite/experimental/string_view/operations/substr/char/83511.cc:
New test.
* testsuite/experimental/string_view/operations/substr/wchar_t/83511.cc:
New test.

From-SVN: r266568
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/std/string_view
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/char/83511.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/wchar_t/83511.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/string_view/operations/substr/char/83511.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/string_view/operations/substr/wchar_t/83511.cc [new file with mode: 0644]