Introduction
What is the standard C++ library?
- The C++ standard library meets the most common needs of C++ programming.
- It is part of the ISO standardisation of C++ (portability).
- It is a superset of the ISO C standard library (header files
cmath
, ctime
, etc).
- It is strongly inspired from the Standard Template Library (STL), a set of templates implementing generic data structures and algorithms.
- The
std
namespace is reserved for it.
- Site cppreference.com is the up-to-date reference site for documentation.
- Each major compiler provides its own implementation of the standard library
- The GNU compiler
g++
(Unix, etc) uses the GNU C++ library libstdc++
- The clang compiler
clang++
(MACOS, etc) uses the C++ library libc++
- The MSVC compiler
VisualC++
(MS Windows, etc) uses the C++ STL library MSVC STL
- Features supported by each implementation are detailed in this page of cppreference.com
Content