The Wayback Machine - https://web.archive.org/web/20171024003157/http://ja.cppreference.com:80/w/cpp/numeric/valarray/resize
名前空間
変種
操作

std::valarray::resize

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

 
 
ニューメリックスライブラリ
一般的な数学関数
浮動小数点環境
複素数
数値配列
擬似乱数生成
コンパイル時有理数演算(C++11)
汎用の数値演算
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
 
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のサイズを返します
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.

(パブリックメンバ関数)[edit]
close