(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{c++ title|Standard Library}} | ||
The '''C++ Standard Library''' is [[standard library|standardized collection]] of macros, values, types, templates, classes, functions, and objects for the [[C++ programming language]] declared or defined in 52 '''C++ library headers'''. The library provides a set of generic containers, utility functions to manipulate them, generic string and streams for input/output processing, memory management, thread management, and various other common services. The C++ Standard Library also incorporates a subset of the [[C Standard Library]] which includes 26 headers under a slightly different name. | The '''C++ Standard Library''' is [[standard library|standardized collection]] of macros, values, types, templates, classes, functions, and objects for the [[C++ programming language]] declared or defined in 52 '''C++ library headers'''. The library provides a set of generic containers, utility functions to manipulate them, generic string and streams for input/output processing, memory management, thread management, and various other common services. The C++ Standard Library also incorporates a subset of the [[C Standard Library]] which includes 26 headers under a slightly different name. | ||
Line 9: | Line 10: | ||
{| style="width: 600px; margin-left: auto; margin-right: auto;" | {| style="width: 600px; margin-left: auto; margin-right: auto;" | ||
− | | | + | |{{cpp|std/algorithm|<algorithm>}} |
− | | | + | |{{cpp|std/array|<array>}} |
− | | | + | |{{cpp|std/atomic|<atomic>}} |
− | | | + | |{{cpp|std/bitset|<bitset>}} |
− | | | + | |{{cpp|std/chrono|<chrono>}} |
− | | | + | |{{cpp|std/codecvt|<codecvt>}} |
− | | | + | |{{cpp|std/complex|<complex>}} |
|- | |- | ||
− | | | + | |{{cpp|std/condition_variable|<condition_variable>}} |
− | | | + | |{{cpp|std/deque|<deque>}} |
− | | | + | |{{cpp|std/exception|<exception>}} |
− | | | + | |{{cpp|std/forward_list|<forward_list>}} |
− | | | + | |{{cpp|std/fstream|<fstream>}} |
− | | | + | |{{cpp|std/functional|<functional>}} |
− | | | + | |{{cpp|std/future|<future>}} |
|- | |- | ||
− | | | + | |{{cpp|std/initializer_list|<initializer_list>}} |
− | | | + | |{{cpp|std/iomanip|<iomanip>}} |
− | | | + | |{{cpp|std/iosfwd|<iosfwd>}} |
− | | | + | |{{cpp|std/ios|<ios>}} |
− | | | + | |{{cpp|std/iostream|<iostream>}} |
− | | | + | |{{cpp|std/istream|<istream>}} |
− | | | + | |{{cpp|std/iterator|<iterator>}} |
|- | |- | ||
− | | | + | |{{cpp|std/limits|<limits>}} |
− | | | + | |{{cpp|std/list|<list>}} |
− | | | + | |{{cpp|std/locale|<locale>}} |
− | | | + | |{{cpp|std/map|<map>}} |
− | | | + | |{{cpp|std/memory|<memory>}} |
− | | | + | |{{cpp|std/mutex|<mutex>}} |
− | | | + | |{{cpp|std/new|<new>}} |
|- | |- | ||
− | | | + | |{{cpp|std/numeric|<numeric>}} |
− | | | + | |{{cpp|std/ostream|<ostream>}} |
− | | | + | |{{cpp|std/queue|<queue>}} |
− | | | + | |{{cpp|std/random|<random>}} |
− | | | + | |{{cpp|std/ratio|<ratio>}} |
− | | | + | |{{cpp|std/regex|<regex>}} |
− | | | + | |{{cpp|std/scoped_allocator|<scoped_allocator>}} |
|- | |- | ||
− | | | + | |{{cpp|std/set|<set>}} |
− | | | + | |{{cpp|std/sstream|<sstream>}} |
− | | | + | |{{cpp|std/stack|<stack>}} |
− | | | + | |{{cpp|std/stdexcept|<stdexcept>}} |
− | | | + | |{{cpp|std/streambuf|<streambuf>}} |
− | | | + | |{{cpp|std/string|<string>}} |
− | | | + | |{{cpp|std/strstream|<strstream>}} |
|- | |- | ||
− | | | + | |{{cpp|std/system_error|<system_error>}} |
− | | | + | |{{cpp|std/thread|<thread>}} |
− | | | + | |{{cpp|std/tuple|<tuple>}} |
− | | | + | |{{cpp|std/typeindex|<typeindex>}} |
− | | | + | |{{cpp|std/typeinfo|<typeinfo>}} |
− | | | + | |{{cpp|std/type_traits|<type_traits>}} |
− | | | + | |{{cpp|std/unordered_map|<unordered_map>}} |
|- | |- | ||
− | | | + | |{{cpp|std/unordered_set|<unordered_set>}} |
− | | | + | |{{cpp|std/utility|<utility>}} |
− | | | + | |{{cpp|std/valarray|<valarray>}} |
− | | | + | |{{cpp|std/vector|<vector>}} |
|} | |} | ||
Line 76: | Line 77: | ||
{| style="width: 600px; margin-left: auto; margin-right: auto;" | {| style="width: 600px; margin-left: auto; margin-right: auto;" | ||
− | | | + | |{{cpp|std/cassert|<cassert>}} |
− | | | + | |{{cpp|std/ccomplex|<ccomplex>}} |
− | | | + | |{{cpp|std/cctype|<cctype>}} |
− | | | + | |{{cpp|std/cerrno|<cerrno>}} |
− | | | + | |{{cpp|std/cfenv|<cfenv>}} |
|- | |- | ||
− | | | + | |{{cpp|std/cfloat|<cfloat>}} |
− | | | + | |{{cpp|std/cinttypes|<cinttypes>}} |
− | | | + | |{{cpp|std/ciso646|<ciso646>}} |
− | | | + | |{{cpp|std/climits|<climits>}} |
− | | | + | |{{cpp|std/clocale|<clocale>}} |
|- | |- | ||
− | | | + | |{{cpp|std/cmath|<cmath>}} |
− | | | + | |{{cpp|std/csetjmp|<csetjmp>}} |
− | | | + | |{{cpp|std/csignal|<csignal>}} |
− | | | + | |{{cpp|std/cstdalign|<cstdalign>}} |
− | | | + | |{{cpp|std/cstdarg|<cstdarg>}} |
|- | |- | ||
− | | | + | |{{cpp|std/cstdbool|<cstdbool>}} |
− | | | + | |{{cpp|std/cstddef|<cstddef>}} |
− | | | + | |{{cpp|std/cstdint|<cstdint>}} |
− | | | + | |{{cpp|std/cstdio|<cstdio>}} |
− | | | + | |{{cpp|std/cstdlib|<cstdlib>}} |
|- | |- | ||
− | | | + | |{{cpp|std/cstring|<cstring>}} |
− | | | + | |{{cpp|std/ctgmath|<ctgmath>}} |
− | | | + | |{{cpp|std/ctime|<ctime>}} |
− | | | + | |{{cpp|std/cuchar|<cuchar>}} |
− | | | + | |{{cpp|std/cwchar|<cwchar>}} |
|- | |- | ||
− | | | + | |{{cpp|std/cwctype|<cwctype>}} |
|} | |} | ||
Latest revision as of 20:15, 26 November 2015
The C++ Standard Library is standardized collection of macros, values, types, templates, classes, functions, and objects for the C++ programming language declared or defined in 52 C++ library headers. The library provides a set of generic containers, utility functions to manipulate them, generic string and streams for input/output processing, memory management, thread management, and various other common services. The C++ Standard Library also incorporates a subset of the C Standard Library which includes 26 headers under a slightly different name.
The current standard that dictates the C++ Standard Library is C++11 which was published in August of 2011, replacing the the C++03 standard.
All library entities, with the exception of the operator new, operator delete, and macros, are defined within the namespace std or within a namespace netsted within namespace std.
Standard Headers[edit]
The C++ standard library provides 52 C++ library headers:
C Headers[edit]
- Main article: C Standard Library
The C++ standard library provides a subset of the facilities of the C Standard Library in 26 headers. They have the same name as their C header counterparts except the ".h" is dropped and a "c" prefix is added to them.