名前空間
変種
操作

std::valarray::resize

提供: cppreference.com
< cpp‎ | numeric‎ | valarray

 
 
 
 
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.
現在のサイズが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.
現在のサイズが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.

目次

[編集] パラメータ

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.

[編集] 値を返します

(なし)

[編集]

[編集] 参照

valarray のサイズを返します
(パブリックメンバ関数) [edit]