Input/output manipulators
De cppreference.com
![]() |
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. |
Les manipulateurs sont des fonctions d'assistance qui permettent de contrôler les entrées / sorties des flux en utilisant operator<< ou operator>> .
Original:
Manipulators are helper functions that make it possible to control input/output streams using operator<< or operator>>.
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.
Les manipulateurs qui sont invoqués sans arguments (par exemple std::cout << std::boolalpha; ou std::cin >> std::hex;) sont implémentés comme des fonctions qui prennent une référence à un flux comme leur seul argument. Les surcharges spéciales de basic_ostream::operator<< et basic_istream::operator>> accepter des pointeurs vers ces fonctions .
Original:
The manipulators that are invoked without arguments (e.g. std::cout << std::boolalpha; or std::cin >> std::hex;) are implemented as functions that take a reference to a stream as their only argument. The special overloads of basic_ostream::operator<< and basic_istream::operator>> accept pointers to these functions.
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.
Les manipulateurs qui sont appelées avec des arguments (par exemple std::cout << std::setw(10);) sont implémentés comme des fonctions retournant des objets de type non spécifié. Ces manipulateurs définir leur propre
operator<<
ou operator>>
qui effectuent la manipulation demandée .Original:
The manipulators that are invoked with arguments (e.g. std::cout << std::setw(10);) are implemented as functions returning objects of unspecified type. These manipulators define their own
operator<<
or operator>>
which perform the requested manipulation.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.
Defined in header
<ios> | |
commute entre la représentation textuelle et numérique de booléens Original: switches between textual and numeric representation of booleans The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
contrôle si le préfixe est utilisé pour indiquer base numérique Original: controls whether prefix is used to indicate numeric base The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
contrôle si la virgule est toujours inclus dans représentation en virgule flottante Original: controls whether decimal point is always included in floating-point representation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
contrôle si le signe + utilisés avec des nombres non négatifsOriginal: controls whether the + sign used with non-negative numbersThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Contrôle si les espaces au début est sauté sur l'entrée Original: controls whether leading whitespace is skipped on input The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
Contrôle si les majuscules sont utilisées avec certains formats de sortie Original: controls whether uppercase characters are used with some output formats The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
contrôle si la sortie est vidé après chaque opération Original: controls whether output is flushed after each operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
définit l'emplacement des caractères de remplissage Original: sets the placement of fill characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
modifie la base utilisée pour l'entier I / O Original: changes the base used for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
(C++11) (C++11) |
changements de formatage utilisés pour virgule flottante I / O Original: changes formatting used for floating-point I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |
Defined in header
<istream> | |
consomme des espaces Original: consumes whitespace 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) | |
Defined in header
<ostream> | |
sorties '\0' Original: outputs '\0' 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) | |
vide le flux de sortie Original: flushes the output stream 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) | |
sorties '\n' et vide le flux de sortie Original: outputs '\n' and flushes the output stream 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) | |
Defined in header
<iomanip> | |
efface les drapeaux ios_base spécifiées Original: clears the specified ios_base flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
fixe les drapeaux ios_base spécifiées Original: sets the specified ios_base flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
modifie la base utilisée pour l'entier I / O Original: changes the base used for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
modifie le caractère de remplissage Original: changes the fill character 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) | |
changements à virgule flottante de précision Original: changes floating-point precision The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
modifie la largeur de l'entrée suivante / champ de sortie Original: changes the width of the next input/output field The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
(C++11) |
analyse une valeur monétaire Original: parses a monetary value 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) |
formats et des sorties d'une valeur monétaire Original: formats and outputs a monetary value 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) |
analyse une valeur de date / heure de format spécifié Original: parses a date/time value of specified format 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) |
formats et émet une valeur de date / heure selon le format spécifié Original: formats and outputs a date/time value according to the specified format 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) |