#####  [ cppreference.com ](/)

[ Log in
](/mwiki/index.php?title=Special:UserLogin&returnto=cpp%2Fstandard+library
"You are encouraged to log in; however, it is not mandatory \[o\]")

#####  Namespaces

  * [ Page ](/w/cpp/standard_library "View the content page \[c\]")
  * [ Discussion ](/mwiki/index.php?title=Talk:cpp/standard_library&action=edit&redlink=1 "Discussion about the content page \[t\]")

#####  Variants

#####  Views

  * [ View ](/w/cpp/standard_library)
  * [ Edit ](/mwiki/index.php?title=cpp/standard_library&action=edit "You can edit this page. Please use the preview button before saving \[e\]")
  * [ History ](/mwiki/index.php?title=cpp/standard_library&action=history "Past revisions of this page \[h\]")

#####  Actions

#  C++ Standard Library

From cppreference.com

< [ cpp ](/w/cpp "cpp")

[ C++ ](/w/cpp "cpp")

[ Compiler support ](/w/cpp/compiler_support "cpp/compiler support")  
---  
[ Freestanding and hosted ](/w/cpp/freestanding "cpp/freestanding")  
[ Language ](/w/cpp/language "cpp/language")  
**Standard library**  
[ Standard library headers ](/w/cpp/header "cpp/header")  
[ Named requirements ](/w/cpp/named_req "cpp/named req")  
[ Feature test macros ](/w/cpp/feature_test "cpp/feature test") (C++20)  
[ Language support library ](/w/cpp/utility#Language_support "cpp/utility")  
[ Concepts library ](/w/cpp/concepts "cpp/concepts") (C++20)  
[ Metaprogramming library ](/w/cpp/meta "cpp/meta") (C++11)  
[ Diagnostics library ](/w/cpp/error "cpp/error")  
[ General utilities library ](/w/cpp/utility "cpp/utility")  
[ Strings library ](/w/cpp/string "cpp/string")  
[ Containers library ](/w/cpp/container "cpp/container")  
[ Iterators library ](/w/cpp/iterator "cpp/iterator")  
[ Ranges library ](/w/cpp/ranges "cpp/ranges") (C++20)  
[ Algorithms library ](/w/cpp/algorithm "cpp/algorithm")  
[ Numerics library ](/w/cpp/numeric "cpp/numeric")  
[ Localizations library ](/w/cpp/locale "cpp/locale")  
[ Input/output library ](/w/cpp/io "cpp/io")  
[ Filesystem library ](/w/cpp/filesystem "cpp/filesystem") (C++17)  
[ Regular expressions library ](/w/cpp/regex "cpp/regex") (C++11)  
[ Concurrency support library ](/w/cpp/thread "cpp/thread") (C++11)  
[ Technical specifications ](/w/cpp/experimental "cpp/experimental")  
[ Symbols index ](/w/cpp/symbol_index "cpp/symbol index")  
[ External libraries ](/w/cpp/links/libs "cpp/links/libs")  
  
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/navbar_content&action=edit)

**Standard library**

Exposition-only entities  
---  
[ _decay-copy_ ](/w/cpp/standard_library/decay-copy "cpp/standard
library/decay-copy") (C++11)  
[ _synth-three-way_ _synth-three-way-result_ ](/w/cpp/standard_library/synth-
three-way "cpp/standard library/synth-three-way") (C++20)  (C++20)  
  
[ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/standard_library/navbar_content&action=edit)

The C++ standard library provides a wide range of facilities that are usable
in standard C++.

##  Contents

  * 1  Category 
  * 2  Library contents 
    * 2.1  Headers 
  * 3  C standard library 
    * 3.1  Names associated with safe functions in standard C  (since C++17) 
  * 4  Using the library 
    * 4.1  Including headers 
    * 4.2  Importing headers 
    * 4.3  Importing modules 
    * 4.4  Linkage 
  * 5  Requirements on standard library implementations 
    * 5.1  Guarantees 
    * 5.2  Implementation freedom 
  * 6  Defect reports 

  
---  
  
###  [ [ edit
](/mwiki/index.php?title=cpp/standard_library&action=edit&section=1 "Edit
section: Category") ]  Category

The [ language support library ](/w/cpp/utility#Language_support
"cpp/utility") provides components that are required by certain parts of the
C++ language, such as memory allocation ( [ new ](/w/cpp/language/new
"cpp/language/new") / [ delete ](/w/cpp/language/delete "cpp/language/delete")
) and [ exception processing ](/w/cpp/language/exceptions
"cpp/language/exceptions") .

T