Libreria standard C++: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m {{code}} --> {{codice}} |
traduzione parziale, corr.ne refusi |
||
Riga 40:
| Electronic Arts Standard Template Library || [https://github.com/electronicarts/EASTL] || EASTL || BSD 3-Clause License || 10/20/2021
|-
| Dinkum C++ Library || [http://www.dinkumware.com/] ||
|-
| Cray C++ Standard Library || [https://cug.org/] ||
|}
Riga 52:
;{{codice|<any>}}:Novità in [[C++17]]. Fornisce una classe senza tipo <code>std::any</code>.
;{{codice|<atomic>}}:Novità in [[C++11]]. Fornisce la classe template <code>std::atomic</code>, le sue diverse specializzazioni di modelli e più operazioni atomiche.
;{{codice|<chrono>}}:Fornisce funzioni per le temporizzazioni, come <code>std::chrono::duration</code>, <code>std::chrono::time_point</code> e orologi. A partire da [[C++20]], le
;{{codice|<concepts>}}:Novità in [[C++20]]. Fornisce la libreria per le [[C++11#Concept|concepts]].
;{{codice|<functional>}}:Fornisce diverse funzioni oggetto,
;{{codice|<memory>}}:Fornisce
;{{codice|<memory_resource>}}:Novità in [[C++17]]. Fornisce facilities for creating polymorphic memory allocators whose behaviors can change at runtime.<ref>{{Cita web|cognome=Filipek|nome=Bartlomiej|titolo=Polymorphic Allocators, std::vector Growth and Hacking|url=https://www.bfilipek.com/2020/06/pmr-hacking.html|accesso=30 aprile 2021|lingua=en}}</ref>
;{{codice|<scoped_allocator>}}:Novità in [[C++11]]. Fornisce <code>std::scoped_allocator_adaptor</code>.
;{{codice|<stdexcept>}}:Contains standard exception classes such as <code>std::logic_error</code> and <code>std::runtime_error</code>, both derived from <code>std::exception</code>.
;{{codice|<system_error>}}:Novità in [[C++11]]. Definisce <code>std::error_code</code>
;{{codice|<optional>}}:Novità in [[C++17]]. Fornisce
;{{codice|<stacktrace>}}:Novità in [[C++23]]. Fornisce le operazioni [[stack trace]]
;{{codice|<tuple>}}:Novità in [[C++11]] e [[C++ Technical Report 1|TR1]]. Fornisce
;{{codice|<type_traits>}}:Novità in [[C++11]]. Fornisce
;{{codice|<utility>}}:Fornisce various utilities: class template <code>std::pair</code> (two-member [[tuple]]s), compile-time integer sequences, helpers in constructing vocabulary types, functions such as <code>std::move</code> and <code>std::forward</code>, and many more. The namespace <code>std::rel_ops</code> for automatically generating comparison operators is deprecated in [[C++20]] in favor of new defaulted comparison operators.
;{{codice|<variant>}}:Novità in [[C++17]]. Fornisce
===Supporto del linguaggio===
;{{codice|<compare>}}:Novità in [[C++20]]. Fornisce il supporto al nuovo [[Three-way comparison|
;{{codice|<coroutine>}}:Novità in [[C++20]]. Fornisce il supporto alle [[coroutine]]
;{{codice|<exception>}}:Fornisce several types and functions related to [[exception handling]], including <code>std::exception</code>, the base class of all exceptions thrown by the Standard Library.
;{{codice|<initializer_list>}}:Novità in [[C++11]]. Fornisce
;{{codice|<limits>}}:Fornisce
;{{codice|<new>}}:Fornisce
;{{codice|<source_location>}}:Novità in [[C++20]]. Fornisce capturing source ___location information as alternative to predefined macros such as <code>__LINE__</code>.
;{{codice|<typeinfo>}}:Fornisce facilities for working with C++ [[run-time type information]].
Riga 79:
===Strutture dati===
;{{codice|<array>}}:Novità in [[C++11]] and
;{{codice|<bitset>}}:Fornisce the specialized container class <code>std::bitset</code>, a [[bit array]].
;{{codice|<deque>}}:Fornisce the container class template <code>[[deque (C++)|std::deque]]</code>, a [[deque|double-ended queue]].
;{{codice|<forward_list>}}:Novità in [[C++11]] and
;{{codice|<list>}}:Fornisce the container class template <code>[[list (C++)|std::list]]</code>, a [[doubly linked list]].
;{{codice|<map>}}:Fornisce the container class templates <code>[[map (C++)|std::map]]</code> and <code>std::multimap</code>, sorted [[Array associativo|associative array]] and [[Multimap (data structure)|multimap]].
Riga 89:
;{{codice|<span>}}:Novità in [[C++20]]. Fornisce the container adapter class template <code>std::span</code>, a mutable non-owning view that refers to any contiguous range.
;{{codice|<stack>}}:Fornisce the container adapter class <code>[[stack (C++)|std::stack]]</code>, a [[Stack (data structure)|stack]].
;{{codice|<unordered_map>}}:Novità in [[C++11]] and
;{{codice|<unordered_set>}}:Novità in [[C++11]] and
;{{codice|<vector>}}:Fornisce the container class template <code>[[vector (C++)|std::vector]]</code>, a [[Array dinamico|dynamic array]].
Riga 101:
===Localizzazione===
;{{codice|<locale>}}: Definisce classes and declares functions that encapsulate and manipulate the information peculiar to a [[Locale (computer software)|locale]].
;{{codice|<codecvt>}}: Fornisce code conversion facets for various character encodings.
===Stringhe===
Riga 116:
;{{codice|<ios>}}:Fornisce several types and functions basic to the operation of iostreams.
;{{codice|<iosfwd>}}:Fornisce [[forward declaration]]s of several I/O-related class templates.
;{{codice|<iostream>}}:Fornisce
;{{codice|<istream>}}:Fornisce <code>std::istream</code>
;{{codice|<ostream>}}:Fornisce <code>std::ostream</code>
;{{codice|<spanstream>}}:Novità in [[C++23]]. Fornisce <code>std::spanstream</code> and other fixed character buffer I/O streams.
;{{codice|<sstream>}}:Fornisce <code>std::stringstream</code> and other supporting classes for string manipulation.
Riga 130:
;{{codice|<latch>}}: Novità in [[C++20]]. Fornisce <code>std::latch</code>, a single-use thread barrier.
;{{codice|<mutex>}}: Novità in [[C++11]]. In 32.5-1, this section Fornisce mechanisms for mutual exclusion: mutexes, locks, and call once.
;{{codice|<shared_mutex>}}: Novità in [[C++14]]. Fornisce
;{{codice|<semaphore>}}: Novità in [[C++20]]. Fornisce [[
;{{codice|<stop_token>}}: Novità in [[C++20]]. In 32.3.1-1, this section describes components that can be used to asynchronously request that an operation stops execution in a timely manner, typically because the result is no longer required. Such a request is called a stop request.
;{{codice|<thread>}}: Novità in [[C++11]]. Provide class and namespace for working with threads.
Riga 137:
===Libreria numerica===
Components that C++ programs may use to perform seminumerical operations.
;{{codice|<bit>}}: Novità in [[C++20]]. Fornisce
;{{codice|<complex>}}: Definisce a class template <code>std::complex</code>, and numerous functions for representing and manipulating complex numbers.
;{{codice|<numbers>}}: Novità in [[C++20]]. Fornisce mathematical constants defined in namespace <code>std::numbers</code>.
;{{codice|<random>}}: Novità in [[C++11]].
;{{codice|<ratio>}}: Novità in [[C++11]]. Fornisce compile-time rational arithmetic based on class templates.
;{{codice|<valarray>}}: Definisce five class templates (<code>std::valarray</code>, <code>std::slice_array</code>, <code>std::gslice_array</code>, <code>std::mask_array</code>, and <code>std::indirect_array</code>), two classes (<code>std::slice</code> and <code>std::gslice</code>), and a series of related function templates for representing and manipulating arrays of values.
;{{codice|<numeric>}}:
===Libreria standard del C===
|