Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions docs/standard-library/cpp-standard-library-header-files.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "C++ standard library header files"
description: "C++ standard library header files, categorized"
ms.date: 08/31/2020
ms.date: 03/05/2026
helpviewer_keywords: ["header files, C++ Standard Library", "C++ Standard Library, header files"]
---
# C++ standard library header files
Expand All @@ -23,27 +23,29 @@ Header files for the C++ standard library and extensions, by category.
| Ordered associative containers| [`<map>`](map.md), [`<set>`](set.md) |
| Unordered associative containers | [`<unordered_map>`](unordered-map.md)<sup>11</sup>, [`<unordered_set>`](unordered-set.md)<sup>11</sup> |
| Container adaptors | [`<queue>`](queue.md), [`<stack>`](stack.md) |
| Container views | [`<span>`](span.md)<sup>20</sup> |
| Container views | `<mdspan>`<sup>23</sup>, [`<span>`](span.md)<sup>20</sup> |
| Diagnostics | `<stacktrace>`<sup>23</sup> |
| [Errors and exception handling](../cpp/errors-and-exception-handling-modern-cpp.md) | [`<cassert>`](cassert.md), [`<exception>`](exception.md), [`<stdexcept>`](stdexcept.md), [`<system_error>`](system-error.md)<sup>11</sup> |
| General utilities | [`<any>`](any.md)<sup>17</sup>, [`<bit>`](bit.md)<sup>20</sup>, [`<bitset>`](bitset.md), [`<cstdlib>`](cstdlib.md), [`<execution>`](execution.md)<sup>17</sup>, [`<functional>`](functional.md), [`<memory>`](memory.md), [`<memory_resource>`](memory-resource.md)<sup>17</sup>, [`<optional>`](optional.md)<sup>17</sup>, [`<ratio>`](ratio.md)<sup>11</sup>, [`<scoped_allocator>`](scoped-allocator.md)<sup>11</sup>, [`<tuple>`](tuple.md)<sup>11</sup>, [`<type_traits>`](type-traits.md)<sup>11</sup>, [`<typeindex>`](typeindex.md)<sup>11</sup>, [`<utility>`](utility.md), [`<variant>`](variant.md)<sup>17</sup> |
| [I/O and formatting](../text/string-and-i-o-formatting-modern-cpp.md) | [`<cinttypes>`](cinttypes.md)<sup>11</sup>, [`<cstdio>`](cstdio.md), [`<filesystem>`](filesystem.md)<sup>17</sup>, [`<fstream>`](fstream.md), [`<iomanip>`](iomanip.md), [`<ios>`](ios.md), [`<iosfwd>`](iosfwd.md), [`<iostream>`](iostream.md), [`<istream>`](istream.md), [`<ostream>`](ostream.md), [`<sstream>`](sstream.md), [`<streambuf>`](streambuf.md), [`<strstream>`](strstream.md)<sup>c</sup>, `<syncstream>`<sup>20</sup> |
| General utilities | [`<any>`](any.md)<sup>17</sup>, [`<bit>`](bit.md)<sup>20</sup>, [`<bitset>`](bitset.md), [`<cstdlib>`](cstdlib.md), [`<execution>`](execution.md)<sup>17</sup>, `<expected>`<sup>23</sup>, [`<functional>`](functional.md), [`<memory>`](memory.md), [`<memory_resource>`](memory-resource.md)<sup>17</sup>, [`<optional>`](optional.md)<sup>17</sup>, [`<ratio>`](ratio.md)<sup>11</sup>, [`<scoped_allocator>`](scoped-allocator.md)<sup>11</sup>, [`<tuple>`](tuple.md)<sup>11</sup>, [`<type_traits>`](type-traits.md)<sup>11</sup>, [`<typeindex>`](typeindex.md)<sup>11</sup>, [`<utility>`](utility.md), [`<variant>`](variant.md)<sup>17</sup> |
| [I/O and formatting](../text/string-and-i-o-formatting-modern-cpp.md) | [`<cinttypes>`](cinttypes.md)<sup>11</sup>, [`<cstdio>`](cstdio.md), [`<filesystem>`](filesystem.md)<sup>17</sup>, `<format>`<sup>20</sup>, [`<fstream>`](fstream.md), [`<iomanip>`](iomanip.md), [`<ios>`](ios.md), [`<iosfwd>`](iosfwd.md), [`<iostream>`](iostream.md), [`<istream>`](istream.md), [`<ostream>`](ostream.md), `<print>`<sup>23</sup>, `<spanstream>`<sup>23</sup>, [`<sstream>`](sstream.md), [`<streambuf>`](streambuf.md), [`<strstream>`](strstream.md)<sup>c</sup>, `<syncstream>`<sup>20</sup> |
| Iterators | [`<iterator>`](iterator.md) |
| Language support | [`<cfloat>`](cfloat.md), [`<climits>`](climits.md), [`<codecvt>`](codecvt.md)<sup>11 a</sup>, `<compare>`<sup>20</sup>, `<contract>`<sup>20</sup>, `<coroutine>`<sup>20</sup>, [`<csetjmp>`](csetjmp.md), [`<csignal>`](csignal.md), [`<cstdarg>`](cstdarg.md), [`<cstddef>`](cstddef.md), [`<cstdint>`](cstdint.md)<sup>11</sup>, [`<cstdlib>`](cstdlib.md), [`<exception>`](exception.md), [`<initializer_list>`](initializer-list.md)<sup>11</sup>, [`<limits>`](limits.md), [`<new>`](new.md), [`<typeinfo>`](typeinfo.md), `<version>`<sup>20</sup> |
| Language support | [`<cfloat>`](cfloat.md), [`<climits>`](climits.md), [`<codecvt>`](codecvt.md)<sup>11 a</sup>, `<compare>`<sup>20</sup>, `<coroutine>`<sup>20</sup>, [`<csetjmp>`](csetjmp.md), [`<csignal>`](csignal.md), [`<cstdarg>`](cstdarg.md), [`<cstddef>`](cstddef.md), [`<cstdint>`](cstdint.md)<sup>11</sup>, [`<cstdlib>`](cstdlib.md), [`<exception>`](exception.md), [`<initializer_list>`](initializer-list.md)<sup>11</sup>, [`<limits>`](limits.md), [`<new>`](new.md), `<source_location>`<sup>20</sup>, `<stdfloat>`<sup>23</sup>, [`<typeinfo>`](typeinfo.md), `<version>`<sup>20</sup> |
| Localization | [`<clocale>`](clocale.md), [`<codecvt>`](codecvt.md)<sup>11 a</sup>, [`<cvt/wbuffer>`](cvt-wbuffer.md), [`<cvt/wstring>`](cvt-wstring.md), [`<locale>`](locale.md) |
| Math and numerics | [`<bit>`](bit.md)<sup>20</sup>, [`<cfenv>`](cfenv.md)<sup>11</sup>, [`<cmath>`](cmath.md), [`<complex>`](complex.md), [`<cstdlib>`](cstdlib.md), [`<limits>`](limits.md), [`<numeric>`](numeric.md), [`<random>`](random.md)<sup>11</sup>, [`<ratio>`](ratio.md)<sup>11</sup>, [`<valarray>`](valarray.md) |
| Math and numerics | [`<bit>`](bit.md)<sup>20</sup>, [`<cfenv>`](cfenv.md)<sup>11</sup>, [`<cmath>`](cmath.md), [`<complex>`](complex.md), [`<cstdlib>`](cstdlib.md), [`<limits>`](limits.md), `<numbers>`<sup>20</sup>, [`<numeric>`](numeric.md), [`<random>`](random.md)<sup>11</sup>, [`<ratio>`](ratio.md)<sup>11</sup>, [`<valarray>`](valarray.md) |
| [Memory management](../cpp/smart-pointers-modern-cpp.md) | [`<allocators>`](allocators-header.md), [`<memory>`](memory.md), [`<memory_resource>`](memory-resource.md)<sup>17</sup>, [`<new>`](new.md), [`<scoped_allocator>`](scoped-allocator.md)<sup>11</sup> |
| Multithreading | [`<atomic>`](atomic.md)<sup>11</sup>, [`<condition_variable>`](condition-variable.md)<sup>11</sup>, [`<future>`](future.md)<sup>11</sup>, [`<mutex>`](mutex.md)<sup>11</sup>, [`<shared_mutex>`](shared-mutex.md)<sup>14</sup>, [`<thread>`](thread.md)<sup>11</sup> |
| Ranges | [`<ranges>`](ranges.md)<sup>20</sup> |
| Multithreading | [`<atomic>`](atomic.md)<sup>11</sup>, `<barrier>`<sup>20</sup>, [`<condition_variable>`](condition-variable.md)<sup>11</sup>, [`<future>`](future.md)<sup>11</sup>, `<latch>`<sup>20</sup>, [`<mutex>`](mutex.md)<sup>11</sup>, `<semaphore>`<sup>20</sup>, [`<shared_mutex>`](shared-mutex.md)<sup>14</sup>, `<stop_token>`<sup>20</sup>, [`<thread>`](thread.md)<sup>11</sup> |
| Ranges | `<generator>`<sup>23</sup>, [`<ranges>`](ranges.md)<sup>20</sup> |
| Regular expressions | [`<regex>`](regex.md)<sup>11</sup> |
| Strings and character data | [`<charconv>`](charconv.md)<sup>17</sup>, [`<cctype>`](cctype.md), [`<cstdlib>`](cstdlib.md), [`<cstring>`](cstring.md), [`<cuchar>`](cuchar.md)<sup>11</sup>, [`<cwchar>`](cwchar.md), [`<cwctype>`](cwctype.md), [`<regex>`](regex.md)<sup>11</sup>, [`<string>`](string.md), [`<string_view>`](string-view.md)<sup>17</sup> |
| Time | [`<chrono>`](chrono.md)<sup>11</sup>, [`<ctime>`](ctime.md) |

<sup>11</sup> Added in the C++11 standard.\
<sup>14</sup> Added in the C++14 standard.\
<sup>17</sup> Added in the C++17 standard.\
<sup>20</sup> Added in the draft C++20 standard.\
<sup>20</sup> Added in the C++20 standard.\
<sup>23</sup> Added in the C++23 standard.\
<sup>a</sup> Deprecated in the C++17 standard.\
<sup>b</sup> Removed in the draft C++20 standard.\
<sup>b</sup> Removed in the C++20 standard.\
<sup>c</sup> Deprecated in the C++98 standard.

::: moniker-end
Expand All @@ -58,7 +60,7 @@ Header files for the C++ standard library and extensions, by category.
|Sequence containers|[`<array>`](array.md), [`<deque>`](deque.md), [`<forward_list>`](forward-list.md), [`<list>`](list.md), [`<vector>`](vector.md)|
|Ordered associative containers| [`<map>`](map.md), [`<set>`](set.md)|
|Unordered associative containers|[`<unordered_map>`](unordered-map.md), [`<unordered_set>`](unordered-set.md)|
|Adaptor containers|[`<queue>`](queue.md), [`<stack>`](stack.md)|
|Container adaptors|[`<queue>`](queue.md), [`<stack>`](stack.md)|
|[Errors and exception handling](../cpp/errors-and-exception-handling-modern-cpp.md)|[`<exception>`](exception.md), [`<stdexcept>`](stdexcept.md), [`<system_error>`](system-error.md)|
|[I/O and formatting](../text/string-and-i-o-formatting-modern-cpp.md)|[`<filesystem>`](filesystem.md), [`<fstream>`](fstream.md), [`<iomanip>`](iomanip.md), [`<ios>`](ios.md), [`<iosfwd>`](iosfwd.md), [`<iostream>`](iostream.md), [`<istream>`](istream.md), [`<ostream>`](ostream.md), [`<sstream>`](sstream.md), [`<streambuf>`](streambuf.md), [`<strstream>`](strstream.md)|
|Iterators|[`<iterator>`](iterator.md)|
Expand Down