C++ library reference
Learn everyday C++ library methods through shopping lists, ticket bookings, delivery dates, and other familiar tasks.
Math and money
Calculate a change in temperature, pack boxes, or round a bill.
35 guidesStrings and input
Clean up names, compare codes, and read quantities from a form.
21 guidesFiles and paths
Build a receipt path, save a note, or read a shopping list.
14 guidesErrors and exceptions
Handle invalid entries, missing records, and interrupted work. Follow each failure from the input that triggers it to a response the user can act on.
9 guidesLists and maps
Work with ordered lists and key-value lookups. Follow a pickup roster, change a booking, or combine stock counts from two deliveries.
26 guidesDates and time
Calculate a delivery date or count nights between bookings.
3 guidesMore library topics
Explore additional libraries and worked examples for this language.
3 guidesOfficial documentation
C++ library header index in the working draft
Header synopses in the C++17 draft
- algorithm
- any
- array
- atomic
- bitset
- cassert
- ccomplex
- cctype
- cerrno
- cfenv
- cfloat
- chrono
- cinttypes
- climits
- clocale
- cmath
- codecvt
- complex
- condition_variable
- csetjmp
- csignal
- cstdalign
- cstdarg
- cstdbool
- cstddef
- cstdint
- cstdio
- cstdlib
- cstring
- ctgmath
- ctime
- cuchar
- cwchar
- cwctype
- deque
- exception
- execution
- filesystem
- forward_list
- fstream
- functional
- future
- initializer_list
- iomanip
- ios
- iosfwd
- iostream
- istream
- limits
- list
- locale
- map
- memory
- memory_resource
- mutex
- new
- numeric
- optional
- ostream
- queue
- random
- ratio
- regex
- scoped_allocator
- set
- shared_mutex
- sstream
- stack
- stdexcept
- streambuf
- string
- string_view
- system_error
- thread
- tuple
- type_traits
- typeindex
- typeinfo
- unordered_map
- unordered_set
- utility
- valarray
- variant
- vector