Clang 14.0.0 does not have <memory_resouce>

For some reason <memory_resource> header is located in experimental subfolder while I have Clang 14.0.0. <memory_resource> is C++17 feature and Clang 14.0.0 is more then C++17 capable.

clang -v Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

find /Library/Developer/CommandLineTools/usr/include/c++/v1/ -name memory_resource -type f /Library/Developer/CommandLineTools/usr/include/c++/v1//experimental/memory_resource

Replies

Xcode's clang is an Apple maintained fork, so it won't be exactly the same as the main clang, and I guess libc++ is different too.

Actually, this is what it is. <memory_resource> file is missing in STL headers - GitHub. This is really strange because v 14.0.0 was release few years after C++17 was introduced.