[libc++] Implement P1391 for string_view
authorJoe Loser <joeloser93@gmail.com>
Wed, 6 Oct 2021 18:17:02 +0000 (14:17 -0400)
committerJoe Loser <joeloser93@gmail.com>
Wed, 6 Oct 2021 18:17:10 +0000 (14:17 -0400)
commit4be7f48960980831a9b744c96f38ddb7dc7848ce
tree536c1e7fe126019ff97e7b156d5c4ca83ba73668
parent0658bab870c89d81678f1f37aac0396ddd0913b3
[libc++] Implement P1391 for string_view

Implement P1391 (https://wg21.link/p1391) which allows
`std::string_view` to be constructible from any contiguous range of
characters.

Note that a different paper (http://wg21.link/P1989) handles the generic
range constructor for `std::string_view`.

Reviewed By: ldionne, Quuxplusone, Mordante, #libc

Differential Revision: https://reviews.llvm.org/D110718
libcxx/docs/Status/Cxx20Papers.csv
libcxx/include/string_view
libcxx/test/std/strings/string.view/string.view.cons/deduct.pass.cpp [new file with mode: 0644]
libcxx/test/std/strings/string.view/string.view.cons/from_iterator_sentinel.pass.cpp [new file with mode: 0644]
libcxx/test/support/make_string.h
libcxx/test/support/test_iterators.h