aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorXiaoyang Liu <siujoeng.lau@gmail.com>2024-04-12 13:25:22 -0400
committerGitHub <noreply@github.com>2024-04-12 19:25:22 +0200
commit7cafe04e0d74c1e9f7e3871a0bcdf4ccb1c89f0c (patch)
tree64933b581921230fe5fee6c06803f05c7110bd69 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent6a85cf8fc0437d4885fc829948befe32c1e5a21d (diff)
downloadllvm-7cafe04e0d74c1e9f7e3871a0bcdf4ccb1c89f0c.zip
llvm-7cafe04e0d74c1e9f7e3871a0bcdf4ccb1c89f0c.tar.gz
llvm-7cafe04e0d74c1e9f7e3871a0bcdf4ccb1c89f0c.tar.bz2
[libc++] P3029R1: Better `mdspan`'s CTAD (#87873)
## Abstract This pull request implements [P3029R1](https://wg21.link/P3029R1). The paper discusses the current behavior of `mdspan`'s most common pointer-indices CTAD, where the `Extents` template parameter is deduced as `dextents` (dynamic extents), even when passing compile-time constant values. The author believes this behavior is suboptimal, as it doesn't take advantage of the compile-time information. The proposed change suggests deducing static extents if `integral_constant`-like constants are passed, resulting in more intuitive syntax and less error-prone code. ## Reference - [P3029R1](https://wg21.link/P3029R1) - [Draft C++ Standard: [span.syn]](https://eel.is/c++draft/span.syn) - [Draft C++ Standard: [mdspan.syn]](https://eel.is/c++draft/mdspan.syn)
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions