std::valarray::resize
提供: cppreference.com
![]() | このページは、Google 翻訳を使って英語版から機械翻訳されました。 翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
void resize(std::size_t count, T value = T()); | ||
count
要素を含むようにvalarrayのサイズを変更します.Original:
Resizes the valarray to contain
count
elements.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.
現在のサイズが
count
未満である場合、追加の要素が付加され、value
で初期化され.Original:
If the current size is less than
count
, additional elements are appended and initialized with value
.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.
現在のサイズが
count
より大きい場合に、valarrayはその最初count
要素に還元される.Original:
If the current size is greater than
count
, the valarray is reduced to its first count
elements.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.
目次 |
[編集]パラメータ
count | - | コンテナの新しいサイズ Original: new size of the container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
value | - | を使用して新しい要素を初期化するための値 Original: the value to initialize the new elements with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集]値を返します
(なし)
[編集]例
This section is incomplete Reason: no example |
[編集]参照
valarrayのサイズを返します Original: returns the size of valarray The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |