获取 C++ 标准库主要有两种途径: 从 C++ 编译器的安装位置(Your C++ compiler installation location)和直接查看或下载网上开源代码(Online open source codes). 具体如下:
Windows OS
Linux/Unix
libc++ — the C++ standard library of LLVM project.
libc++ is an implementation of the C++ standard library, targeting C++11, C++14 and above.
http://libcxx.llvm.org/
https://github.com/llvm/llvm-project/tree/master/libcxx/
GCC, the GNU Compiler Collection
The GNU project is Free and Open Source software, and contains an implementation of the C++ standard library.
https://github.com/gcc-mirror/gcc/tree/master/libstdc%2B%2B-v3
https://github.com/gcc-mirror/gcc
Apache C++ Standard Library.
The Apache C++ Standard Library project (code name stdcxx, pronounced "standard C++ library", not S-T-D-C-X-X) is a collection of algorithms, containers, iterators, and other fundamental components of every piece of software, implemented as C++ classes, templates, and functions essential for writing C++ programs.
http://stdcxx.apache.org/
http://svn.apache.org/repos/asf/stdcxx/
Multiplatform C++ Standard Library (STL implementation). Many compilers and operational environments supported. Standard (ISO/IEC 14882) compliance. Maximum efficiency. Exception and thread safety. Debug mode.
http://www.stlport.org/
https://sourceforge.net/projects/stlport/
SGI(Silicon Graphics Computer Systems, Inc.) implement STL(C++ Standard Libirary).
https://github.com/karottc/sgi-stl
Microsoft‘s C++ Standard Library
MSVC‘s implementation of the C++ Standard Library. https://github.com/microsoft/STL
[1] https://stackoverflow.com/questions/2004212/where-to-get-the-source-code-for-the-c-standard-library
原文:https://www.cnblogs.com/klchang/p/13207884.html