公式サイト: https://clang.llvm.org/
https://libcxx.llvm.org
sudo apt updatesudo apt install libc++-dev
1#include <iostream>2 3int main() {4#ifdef __GLIBCXX__5 std::cout << "libstdc++" << std::endl;6#elif defined(_LIBCPP_VERSION)7 std::cout << "libc++" << std::endl;8#else9 std::cout << "Other C++ standard library" << std::endl;10#endif11 return 0;12}
clang++ -stdlib=libc++ main.cpp && ./a.out
libc++