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/] || Unknown || CommercialCommerciale || Unknown
|-
| Cray C++ Standard Library || [https://cug.org/] || Unknown || CommercialCommerciale || Unknown
|}
 
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 nuovitànovità aggiunte sono calendari, fusi orari, nuovi orologi e stringhe di formattazione per orari e intervalli.
;{{codice|<concepts>}}:Novità in [[C++20]]. Fornisce la libreria per le [[C++11#Concept|concepts]].
;{{codice|<functional>}}:Fornisce diverse funzioni oggetto, realazzaterealizzate per l'uso con algoritrmialgoritmi standard.
;{{codice|<memory>}}:Fornisce facilitiesfunzioni forper la [[memorygestione della managementmemoria]] in C++, includingincludendo thela classclasse template <code>std::unique_ptr</code>.
;{{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 classla classe template <code>std::optional</code>, anper i [[Option typeOpzionali|optionaltipi typeopzionali]].
;{{codice|<stacktrace>}}:Novità in [[C++23]]. Fornisce le operazioni [[stack trace]] operations.
;{{codice|<tuple>}}:Novità in [[C++11]] e [[C++ Technical Report 1|TR1]]. Fornisce ala classclasse template <code>std::tuple</code>, auna [[tupletupla]].
;{{codice|<type_traits>}}:Novità in [[C++11]]. Fornisce metaprogrammingfunzioni facilitiesdi workingmetaprogrammazione withper typeslavorare con i tipi.
;{{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 ala classclasse template <code>std::variant</code>, a [[Tagged union|tagged union type]].
 
===Supporto del linguaggio===
;{{codice|<compare>}}:Novità in [[C++20]]. Fornisce il supporto al nuovo [[Three-way comparison|three-wayoperatore comparisona operatortre vie]] support.
;{{codice|<coroutine>}}:Novità in [[C++20]]. Fornisce il supporto alle [[coroutine]] support.
;{{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 initializeril listsupporto supportalle [[Inizializzatore|liste di inizializzatori]].
;{{codice|<limits>}}:Fornisce thela classclasse template <code>std::numeric_limits</code>, used for describing properties of fundamental numeric types.
;{{codice|<new>}}:Fornisce operatorsgli operatori <code>new</code> ande <code>delete</code> andoltre otherche functionsaltre andfunzioni typese composingtipi, thei fundamentalsquali ofcompongono C++i fondamenti della [[memorygestione managementdella memoria]] in C++.
;{{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 [[C++ Technical Report 1|TR1]]. Fornisce the container class template <code>[[array (C++)|std::array]]</code>, a container for a fixed sized array.
;{{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 [[C++ Technical Report 1|TR1]]. Fornisce the container class template <code>[[forward list (C++)|std::forward_list]]</code>, a [[Linked list|singly linked list]].
;{{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 [[C++ Technical Report 1|TR1]]. Fornisce the container class template <code>[[unordered map (C++)|std::unordered_map]]</code> and <code>std::unordered_multimap</code>, [[hash table]]s.
;{{codice|<unordered_set>}}:Novità in [[C++11]] and [[C++ Technical Report 1|TR1]]. Fornisce the container class template <code>[[unordered set (C++)|std::unordered_set]]</code> and <code>std::unordered_multiset</code>.
;{{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. ThisQuesto header isè deprecateddeprecato sincea partire da [[C++17]].
 
===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 C++le basi per gestire l'input ande l'output fundamentalsin C++. SeeVedere [[iostream]].
;{{codice|<istream>}}:Fornisce <code>std::istream</code> ande otheraltre supportingclassi classesdi forsupport per l'input.
;{{codice|<ostream>}}:Fornisce <code>std::ostream</code> ande otheraltre supportingclassi classesdi forsupporto per l'output.
;{{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 facitilityfunzioni forper sharedla mutual[[mutua exclusionesclusione]] condivisa.
;{{codice|<semaphore>}}: Novità in [[C++20]]. Fornisce [[SemaphoreSemaforo (programminginformatica)|semaphoresemafori]] thatche modelsmodellano un conteggio non-negative resourcenegativo delle countrisorse.
;{{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 bitfunzioni manipulationper facilityla manipolazione dei bit.
;{{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]]. FacilityContiene forfunzioni generatingper generare numeri e ripartizioni (pseudo-)random numbers and distributionscasuali.
;{{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>}}: GeneralizedPer numericle operationsoperazioni numeriche generalizzate.
 
===Libreria standard del C===