Input/output manipulators
提供: 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. |
マニピュレータはoperator<<または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.
引数なしで呼び出されたマニピュレータ(例えばstd::cout << std::boolalpha;またはstd::cin >> std::hex;)彼らの唯一の引数としてストリームへの参照を取る関数として実装されます。 basic_ostream::operator<<の特別なオーバーロードとbasic_istream::operator>>これらの関数へのポインタを受け入れる.
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.
引数で呼び出されるマニピュレータ(例えばstd::cout << std::setw(10);)不特定の型のオブジェクトを返す関数として実装されています。これらのマニピュレータは、要求された操作を実行する独自
operator<<
またはoperator>>
を定義.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> | |
ブール値のテキストや数値表現の間で切り替わります 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. (機能) | |
プレフィックスは基数を示すために使用されているかどうかを制御します 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. (機能) | |
小数点が常に浮動小数点表現に含まれているかどうかを制御します 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. (機能) | |
+ 記号は非負数で使用されるかどうかを制御しますOriginal: 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. (機能) | |
先頭の空白かどうかのコントロールは、入力時にはスキップされます 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. (機能) | |
controls whether uppercase characters are used with some output formats (機能) | |
出力は各操作の後にフラッシュされるかどうかを制御します 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. (機能) | |
フィル文字の配置を設定します 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. (機能) | |
整数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. (機能) | |
(C++11) (C++11) |
変更は、浮動小数点の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. (機能) |
Defined in header
<istream> | |
空白が消費されます 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. (関数テンプレート) | |
Defined in header
<ostream> | |
出力'\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. (関数テンプレート) | |
出力ストリームをフラッシュします 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. (関数テンプレート) | |
出力'\n'と出力ストリームをフラッシュします 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. (関数テンプレート) | |
Defined in header
<iomanip> | |
指定されたios_baseのフラグをクリアします 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. (機能) | |
指定されたios_baseのフラグが設定されます 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. (機能) | |
整数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. (機能) | |
埋め込み文字を変更します 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. (関数テンプレート) | |
浮動小数点の精度を変更します 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. (機能) | |
次の入力/出力フィールドの幅を変更します 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. (機能) | |
(C++11) |
金銭的価値を解析します 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. (関数テンプレート) |
(C++11) |
フォーマットと金銭的な値を出力します 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. (関数テンプレート) |
(C++11) |
指定された形式の日付/時刻値を解析します 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. (関数テンプレート) |
(C++11) |
フォーマットと指定された書式に従って日付/時刻の値を出力します 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. (関数テンプレート) |