Espaces de noms
Variantes

Utility library

De cppreference.com
< cpp


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.
  • bibliothèques de support du langage et
    Original:
    language support libraries, and
    The 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.

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.

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.

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.

Gestion des erreurs

Exceptions (ex. std::exception, std::logic_error), assertions (ex. assert)
Original:
Exceptions (e.g. std::exception, std::logic_error), assertions (e.g. assert)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Listes d'initialisation

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) [edit]

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.


Utilitaires d'usage général

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.

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.

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) [edit]

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.

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) [edit]
(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) [edit]
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) [edit]
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) [edit]

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) [edit]
(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) [edit]
(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) [edit]
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) [edit]
(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) [edit]

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) [edit]

Algorithmes de hachage

(C++11)
hash function object
(classe générique) [edit]