Namespaces
Variants
Actions

Difference between revisions of "cpp"

From cppreference.com
(add multibyte)
m (I give up finally)
 
(40 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{title|1=C++<span style="display:none;" class="noprint">/C++0x/C++11</span> reference}}
+
{{title|1=C++ reference}}
{| cellpadding="10" style="font-size: 120%;"
+
{{cpp/navbar}}
|- valign="top"
+
{| class="mainpagetable" cellspacing=0 style="width:100%; white-space:nowrap;"
|
+
|- class="row rowtop"
 
+
| colspan=3 |
'''[[Cppreference:FAQ|FAQ]]'''
+
{{main page cpp contents}}
 
+
'''[[cpp/language | Language]]'''
+
 
+
{| cellpadding="0" style="font-size: 85%; line-height: 1em; margin-left: 3em; width: auto;"
+
|-
+
| [[cpp/preprocessor | Preprocessor]]
+
|-
+
| [[cpp/keywords | Keywords]]
+
|-
+
| [[cpp/headers | Headers]]
+
|-
+
| [[cpp/language/operator_precedence | Operator precedence]]
+
|-
+
| [[cpp/language/escape | Escape sequences]]
+
|-
+
| [[cpp/language/ascii | ASCII chart]]
+
|-
+
| [[cpp/language/types | Fundamental types]]
+
|}
+
 
+
'''[[cpp/utility | Utilities library]]'''
+
 
+
{| cellpadding="0" style="font-size: 85%; line-height: 1em; margin-left: 3em; width: auto;"
+
|-
+
| [[cpp/utility/types | Type support]] (basic types, RTTI, type traits)
+
|-
+
| [[cpp/memory | Dynamic memory management]]
+
|-
+
| [[cpp/error | Error handling]]
+
|-
+
| [[cpp/utility/program | Program utilities]]
+
|-
+
| [[cpp/chrono | Date and time]]
+
|-
+
| {{ltt|cpp/utility/bitset}}
+
|-
+
| [[cpp/functional | Function objects]]
+
|-
+
| {{ltt|cpp/utility/pair}}
+
|-
+
| {{ltt|cpp/utility/tuple}} {{mark c++11 feature}}
+
|}
+
 
+
'''[[cpp/string | Strings library]]'''
+
 
+
{| cellpadding="0" style="font-size: 85%; line-height: 1em; margin-left: 3em; width: auto;"
+
|-
+
| {{ltt|cpp/string/basic_string}}
+
|-
+
| [[cpp/string/byte | NULL-terminated byte strings]]
+
|-
+
| [[cpp/string/multibyte | NULL-terminated byte strings]]
+
|-
+
| [[cpp/string/wide | NULL-terminated wide strings]]
+
|}
+
 
+
|
+
 
+
'''[[cpp/container | Containers library]]'''
+
 
+
{| cellpadding="0" style="font-size: 85%; line-height: 1em; margin-left: 3em; width: auto;"
+
|-
+
| {{ltt|cpp/container/array}} {{mark c++11 feature}}
+
|-
+
| {{ltt|cpp/container/vector}}
+
|-
+
| {{ltt|cpp/container/deque}}
+
|-
+
| {{ltt|cpp/container/list}}
+
|-
+
| {{ltt|cpp/container/forward_list}} {{mark c++11 feature}}
+
|-
+
| {{ltt|cpp/container/set}}
+
|-
+
| {{ltt|cpp/container/multiset}}
+
|-
+
| {{ltt|cpp/container/map}}
+
|-
+
| {{ltt|cpp/container/multimap}}
+
|-
+
| {{ltt|cpp/container/unordered_set}} {{mark c++11 feature}}
+
|-
+
| {{ltt|cpp/container/unordered_multiset}} {{mark c++11 feature}}
+
|-
+
| {{ltt|cpp/container/unordered_map}} {{mark c++11 feature}}
+
|-
+
| {{ltt|cpp/container/unordered_multimap}} {{mark c++11 feature}}
+
|-
+
| {{ltt|cpp/container/stack}}
+
|-
+
| {{ltt|cpp/container/queue}}
+
|-
+
| {{ltt|cpp/container/priority_queue}}
+
|}
+
 
+
'''[[cpp/algorithm | Algorithms library]]'''
+
 
+
'''[[cpp/iterator | Iterators library]]'''
+
 
+
'''[[cpp/numeric | Numerics library]]'''
+
 
+
{| cellpadding="0" style="font-size: 85%; line-height: 1em; margin-left: 3em; width: auto;"
+
|-
+
| [[cpp/numeric/math | Common mathematical functions]]
+
|-
+
| [[cpp/numeric/complex | Complex numbers]]
+
|-
+
| [[cpp/numeric/random | Pseudo-random number generation]]
+
|}
+
 
+
|
+
 
+
'''[[/io | Input/output library]]'''
+
 
+
{| cellpadding="0" style="font-size: 85%; line-height: 1em; margin-left: 3em; width: auto;"
+
|-
+
| {{ltt|cpp/io/basic_streambuf}}
+
|-
+
| {{ltt|cpp/io/basic_filebuf}}
+
|-
+
| {{ltt|cpp/io/basic_stringbuf}}
+
|-
+
| {{ltt|cpp/io/ios_base}}
+
|-
+
| {{ltt|cpp/io/basic_ios}}
+
|-
+
| {{ltt|cpp/io/basic_istream}}
+
|-
+
| {{ltt|cpp/io/basic_ostream}}
+
|-
+
| {{ltt|cpp/io/basic_iostream}}
+
|-
+
| {{ltt|cpp/io/basic_ifstream}}
+
|-
+
| {{ltt|cpp/io/basic_ofstream}}
+
|-
+
| {{ltt|cpp/io/basic_fstream}}
+
|-
+
| {{ltt|cpp/io/basic_istringstream}}
+
|-
+
| {{ltt|cpp/io/basic_ostringstream}}
+
|-
+
| {{ltt|cpp/io/basic_stringstream}}
+
|-
+
| [[cpp/io/manip | I/O manipulators]]
+
|-
+
| [[cpp/io/c | C-style I/O ]]
+
|}
+
 
+
'''[[cpp/locale | Localizations library]]'''
+
 
+
'''[[cpp/regex | Regular expression library]]''' {{mark c++11 feature}}
+
 
+
'''[[cpp/atomic | Atomic operations library]]''' {{mark c++11 feature}}
+
 
+
'''[[cpp/thread | Thread support library]]''' {{mark c++11 feature}}
+
 
+
 
|}
 
|}
  
<div class="noprint">
+
{{langlinks|ar|cs|de|es|fr|it|ja|pl|pt|ru|tr|zh}}
{{fmbox|text=An archived version of this website, suitable for offline viewing, is now available [[Cppreference:Archives|here]]}}
+
</div>
+
{{lang}}
+

Latest revision as of 22:24, 16 December 2017

C++11, C++14, C++17, C++20, C++23, C++26  │  Compiler support C++11, C++14, C++17, C++20, C++23, C++26

Language

Standard library (headers)

Named requirements

Feature test macros (C++20)

Language support library

Concepts library (C++20)

Diagnostics library

Memory management library

Metaprogramming library (C++11)

General utilities library

Function objects − hash (C++11)
Swap − Type operations (C++11)
Integer comparison (C++20)
pair − tuple (C++11)
optional (C++17)
expected (C++23)
variant (C++17) − any (C++17)
bitset − Bit manipulation (C++20)

Containers library

vector − deque − array (C++11)
list − forward_list (C++11)
map − multimap − set − multiset
unordered_map (C++11)
unordered_multimap (C++11)
unordered_set (C++11)
unordered_multiset (C++11)
Container adaptors
span (C++20) − mdspan (C++23)

Iterators library

Ranges library (C++20)

Algorithms library

Strings library

Text processing library

Numerics library

Date and time library

Calendar (C++20) − Time zone (C++20)

Input/output library

Concurrency support library (C++11)

thread − jthread (C++20)
atomic − atomic_flag
atomic_ref (C++20) −  memory_order
Mutual exclusion − Semaphores (C++20)
Condition variables − Futures
latch (C++20) − barrier (C++20)
Safe Reclamation (C++26)

Execution support library (C++26)

Technical specifications

    Standard library extensions  (library fundamentals TS)

    Standard library extensions v2  (library fundamentals TS v2)

    Standard library extensions v3  (library fundamentals TS v3)


Parallelism library extensions v2
(parallelism TS v2)

Concurrency library extensions
(concurrency TS)
Transactional Memory  (TM TS)
Reflection  (reflection TS)

External Links  −  Non-ANSI/ISO Libraries  −  Index  −  std Symbol Index