[all-commits] [llvm/llvm-project] 3a208c: [libc++] Implement P1394r4 for span: range constru...

Joseph Loser via All-commits all-commits at lists.llvm.org
Fri Oct 8 14:01:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a208c68942e9f4d24bd235a6e497852da898cae
      https://github.com/llvm/llvm-project/commit/3a208c68942e9f4d24bd235a6e497852da898cae
  Author: Joe Loser <joeloser93 at gmail.com>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

  Changed paths:
    M libcxx/docs/Status/Cxx20Papers.csv
    M libcxx/include/span
    M libcxx/test/std/containers/views/span.cons/assign.pass.cpp
    R libcxx/test/std/containers/views/span.cons/container.fail.cpp
    R libcxx/test/std/containers/views/span.cons/container.pass.cpp
    M libcxx/test/std/containers/views/span.cons/copy.pass.cpp
    M libcxx/test/std/containers/views/span.cons/deduct.pass.cpp
    A libcxx/test/std/containers/views/span.cons/iterator_len.pass.cpp
    A libcxx/test/std/containers/views/span.cons/iterator_len.verify.cpp
    A libcxx/test/std/containers/views/span.cons/iterator_sentinel.pass.cpp
    A libcxx/test/std/containers/views/span.cons/iterator_sentinel.verify.cpp
    R libcxx/test/std/containers/views/span.cons/ptr_len.fail.cpp
    R libcxx/test/std/containers/views/span.cons/ptr_len.pass.cpp
    R libcxx/test/std/containers/views/span.cons/ptr_ptr.fail.cpp
    R libcxx/test/std/containers/views/span.cons/ptr_ptr.pass.cpp
    A libcxx/test/std/containers/views/span.cons/range.pass.cpp
    M libcxx/test/std/containers/views/span.elem/back.pass.cpp
    M libcxx/test/std/containers/views/span.elem/data.pass.cpp
    M libcxx/test/std/containers/views/span.elem/front.pass.cpp
    M libcxx/test/std/containers/views/span.elem/op_idx.pass.cpp
    M libcxx/test/std/containers/views/span.iterators/begin.pass.cpp
    M libcxx/test/std/containers/views/span.iterators/end.pass.cpp
    M libcxx/test/std/containers/views/span.iterators/rbegin.pass.cpp
    M libcxx/test/std/containers/views/span.iterators/rend.pass.cpp
    M libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp
    M libcxx/test/std/containers/views/span.objectrep/as_writable_bytes.fail.cpp
    M libcxx/test/std/containers/views/span.objectrep/as_writable_bytes.pass.cpp
    M libcxx/test/std/containers/views/span.obs/empty.pass.cpp
    M libcxx/test/std/containers/views/span.obs/size.pass.cpp
    M libcxx/test/std/containers/views/span.obs/size_bytes.pass.cpp
    M libcxx/test/std/containers/views/span.sub/first.fail.cpp
    M libcxx/test/std/containers/views/span.sub/first.pass.cpp
    M libcxx/test/std/containers/views/span.sub/last.fail.cpp
    M libcxx/test/std/containers/views/span.sub/last.pass.cpp
    M libcxx/test/std/containers/views/span.sub/subspan.fail.cpp
    M libcxx/test/std/containers/views/span.sub/subspan.pass.cpp

  Log Message:
  -----------
  [libc++] Implement P1394r4 for span: range constructor

Implement https://wg21.link/p1394 which allows span to be constructible
from any contiguous forwarding-range that has a compatible element type.

Fixes https://bugs.llvm.org/show_bug.cgi?id=51443

Reviewed By: ldionne, Quuxplusone, #libc

Differential Revision: https://reviews.llvm.org/D110503




More information about the All-commits mailing list