C++ コンセプト: UnformattedInputFunction
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
[編集] 要件
:
UnformattedInputFunction
は以下を実行し、ストリーム入力機能ですOriginal:
An
UnformattedInputFunction
is a stream input function that performs the following: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.
- 自動記憶域期間を持つと次のことを実行basic_istream::sentryに設定
noskipws
の引数を持つ型trueのオブジェクトを構築しますOriginal:Constructs an object of type basic_istream::sentry with automatic storage duration and with thenoskipws
argument set to true, which performs the followingThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- もしeofbitまたはbadbit入力ストリームに設定されているだけでなく、
failbit
を設定し、failbitは上の例外がこの入力ストリームの例外マスクで有効になっている場合、ios_base::failureをスロー.Original:if eofbit or badbit are set on the input stream, sets thefailbit
as well, and if exceptions on failbit are enabled in this input stream's exception mask, throws ios_base::failure.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - フラッシュするのtie() 'dの出力ストリーム(該当する場合)Original:flushes the tie()'d output stream, if applicableThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-
-
sentry::operator bool()
と同等ですbasic_ios::goodを呼び出すことによって、見張りの状態をチェックし.Original:Checks the status of the sentry by callingsentry::operator bool()
, which is equivalent to basic_ios::good.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - Sentryはfalseを返されるか歩哨のコンストラクタが例外をスローした場合:aOriginal:If the sentry returned false or sentry's constructor threw an exception:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- ゼロへの入力ストリームで抽出された文字数(gcount)を設定しますOriginal:sets the number of extracted characters (gcount) in the input stream to zeroThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 関数は
CharT
の配列に書き込むために呼び出された場合、配列の最初の場所にCharT()
(ヌル文字)を書き込みますOriginal:if the function was called to write to an array ofCharT
, writesCharT()
(the null character) to the first location of the arrayThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-
- Sentryはtrue返された場合は、入力が実行されますOriginal:If the sentry returned true, performs the inputThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- 例外は、入力中に投げられたときに、入力ストリームで
badbit
を設定します。 badbitを上の例外がこのストリームの例外マスクで有効になっている場合は、例外もスローされ.Original:if an exception is thrown during input, setsbadbit
in the input stream. If exceptions on badbit are enabled in this stream's exception mask, the exception is also rethrown.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 例外は、入力時に送出されなかった場合は、入力ストリーム内の抽出された文字数(gcount)を設定します.Original:If no exception was thrown during input, sets the number of extracted characters (gcount) in the input stream.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-
- いずれにしても、例外によって終了したり返したりするかどうか、見張りのデストラクタは、この関数を離れる前に呼ばれ.Original:In any event, whether terminating by exception or returning, the sentry's destructor is called before leaving this function.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 標準ライブラリ
次のような標準ライブラリ関数は
UnformattedInputFunction
sです.Original:
The following standard library functions are
UnformattedInputFunction
s.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::getlineことを除いて、それはgcountを変更しません.Original:std::getline, except that it does not modify gcount.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::operator>>(basic_streambuf*)
- basic_istream::get
- basic_istream::getline
- basic_istream::ignore
- basic_istream::peek
- basic_istream::read
- basic_istream::readsome
- basic_istream::putback、それは最初
eofbit
をクリアすることを除いてOriginal:basic_istream::putback, except that it first clearseofbit
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::unget、それは最初
eofbit
をクリアすることを除いてOriginal:basic_istream::unget, except that it first clearseofbit
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::syncことを除いて、それはgcountを変更しませんOriginal:basic_istream::sync, except that it does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::tellgことを除いて、それはgcountを変更しませんOriginal:basic_istream::tellg, except that it does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::seekgことを除いて、それは最初
eofbit
をクリアしgcountを変更しませんOriginal:basic_istream::seekg, except that it first clearseofbit
and does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - std::wsことを除いて、それはgcountを変更しませんOriginal:std::ws, except that it does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.