[all-commits] [llvm/llvm-project] 4be7f4: [libc++] Implement P1391 for string_view

Joseph Loser via All-commits all-commits at lists.llvm.org
Wed Oct 6 11:19:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4be7f48960980831a9b744c96f38ddb7dc7848ce
      https://github.com/llvm/llvm-project/commit/4be7f48960980831a9b744c96f38ddb7dc7848ce
  Author: Joe Loser <joeloser93 at gmail.com>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M libcxx/docs/Status/Cxx20Papers.csv
    M libcxx/include/string_view
    A libcxx/test/std/strings/string.view/string.view.cons/deduct.pass.cpp
    A libcxx/test/std/strings/string.view/string.view.cons/from_iterator_sentinel.pass.cpp
    M libcxx/test/support/make_string.h
    M libcxx/test/support/test_iterators.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list