Lack of mdspan header in clang

I need to use header for std::mdspan, but I don’t find this header file . How can do this?

this is my clang version here:

I tried the following:

sudo tee /etc/yum.repos.d/llvm.repo << EOF
[llvm]
name=LLVM for Fedora \$releasever
baseurl=https://apt.llvm.org/fedora/\$releasever/llvm/\$basearch/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://apt.llvm.org/llvm-snapshot.gpg.key
EOF

sudo dnf install libc++-devel libc++abi-devel

It show the info:(the option “–skip-unavailable” doesn’t help either)

I tried the following too:
create the file named mdspan in '/usr/include/c++/15/'path, the contents is

gcc-mirror

I’m not sure if I should ask this, but if someone could help me or give me some advice, I would really appreciate it.

(If there’s anything to add, you can @ me.)

I see its not in gcc either.I see its a C++23 feature.

Maybe this feature too new for the current compilers to ship support for it?
Did you search for info on what verion of clang or gcc added support?

Thanks for your replay, you reminded me!

C++23 library features

The information here:


This website is for checking which features are supported by a compiler
:https://cppstat.dev/
from C++ Weekly With Jason Turner:11:17