Utility library
De cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
C++ comprend des bibliothèques d'utilitaires qui fournissent des fonctionnalités allant des opérations sur les bits à l'application partielle de fonction. Ces bibliothèques peuvent être divisées en deux groupes:
Original:
C++ includes a variety of utility libraries that provide functionality ranging from bit de comptage to application de fonction partielle. These libraries can be broadly divided into two groups:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- bibliothèques de support du langage etOriginal:language support libraries, andThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - bibliothèques d'usage général.Original:general-purpose libraries.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
[modifier] Support du langage
Les bibliothèques de support du langage fournissent des classes et des fonctions qui interagissent étroitement avec les caractéristiques du langage et supportent les idiomes communs.
Original:
Language support libraries provide classes and functions that interact closely with language features and support common language idioms.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Support des types
Types de base (ex. std::size_t std::nullptr_t), RTTI (ex. std::type_info), classes de trait (std::is_integral, std::rank)
Original:
Basic types (e.g. std::size_t, std::nullptr_t), RTTI (e.g. std::type_info), type traits (e.g. std::is_integral, std::rank)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Gestion dynamique de la mémoire
Pointeurs intelligents (smart pointers, ex. std::shared_ptr), allocateurs (ex. std::allocator), gestion de la mémoire en syntaxe C (ex. std::malloc)
Original:
Smart pointers (e.g. std::shared_ptr), allocators (e.g. std::allocator), C-style memory management (e.g. std::malloc)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Gestion des erreurs
Exceptions (ex. std::exception, std::logic_error), assertions (ex. assert)
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Listes d'initialisation
(C++11) |
permet l'utilisation de syntaxe de la liste d'initialisation pour initialiser non plain-old-types de données Original: allows the use of syntaxe de la liste d'initialisation to initialize non plain-old-data types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe générique) |
[modifier] Fonctions variadiques
Support des fonctions variadiques, c.a.d. prennant un nombre variable de paramètres (ex. va_start, va_arg, va_end)
Original:
Support for functions that take an arbitrary number of parameters (via e.g. va_start, va_arg, va_end)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Utilitaires d'usage général
[modifier] Gestion du programme
Fin de programme (ex. std::abort std::atexit), gestion de l'environnement (ex. std::system), des signaux (ex. std::raise)
Original:
Termination (e.g. std::abort, std::atexit), environment (e.g. std::system), signals (e.g. std::raise)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Date et heure
Gestion du temps (ex. std::chrono::time_point, std::chrono::duration), date et heure en syntaxe C (ex. std::time, std::clock)
Original:
Time tracking (e.g. std::chrono::time_point, std::chrono::duration), C-style date and time (e.g. std::time, std::clock)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Bitset
met en œuvre constante de tableau de bits de longueur Original: implements constant length bit array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |
[modifier] Fonctions objet
Application de fonction partielle (ex. std::bind), fonctions génériques (ex. std::function), foncteurs prédéfinis (ex. std::plus, std::equal_to)
Original:
Partial function application (e.g. std::bind), generic functions (e.g. std::function), predefined functors (e.g. std::plus, std::equal_to)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Paires et tuples
implémente tuple binaire, à savoir une paire de valeurs Original: implements binary tuple, i.e. a pair of values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe générique) | |
(C++11) |
met en œuvre récipient de taille fixe, qui détient des éléments de types éventuellement différents Original: implements fixed size container, which holds elements of possibly different types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe générique) |
(C++11) |
type de variable utilisé pour sélectionner la surcharge fonctionnement correct de la construction par morceaux Original: tag type used to select correct function overload for piecewise construction The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |
(C++11) |
un objet de piecewise_construct_t type utilisé pour lever l'ambiguïté des fonctions pour la construction par morceaux Original: an object of type piecewise_construct_t used to disambiguate functions for piecewise construction The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante) |
[modifier] Permutation, redirection et déplacement (swap, forward and move)
échange les valeurs de deux objets Original: swaps the values of two objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) | |
(C++11) |
avant un argument de fonction Original: forwards a function argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) |
(C++11) |
obtient une référence rvalue Original: obtains an rvalue reference The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) |
(C++11) |
obtient une référence rvalue si le constructeur mouvement ne jette pas Original: obtains an rvalue reference if the move constructor does not throw The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) |
(C++11) |
obtient le type d'expression dans un contexte non évaluée Original: obtains the type of expression in unevaluated context The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) |
[modifier] Opérateurs de comparaison
Defined in namespace
std::rel_ops | |
automatically generates comparison operators based on user-defined operator== and operator< (fonction générique) |
[modifier] Algorithmes de hachage
(C++11) |
hash function object (classe générique) |