[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/numeric/valarray/resize [Back]  [Original]

std::valarray::resize cppreference.com
cppreference.com

std::valarray::resize

cppreference.com

<metanoindex/>

 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
(C++17)
(C++20)
(C++11)
(C++11)
(C++17)
(C++17)
(C++20)
(C++20)
(C++11)
(C++17)
(C++20)
(C++23)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
 
 
<tbody> </tbody>
void resize( std::size_t count, T value = T() );
valarray count.
:
Resizes the valarray to contain count elements.
Google.
. .
, count, value.
:
If the current size is less than count, additional elements are appended and initialized with value.
Google.
. .
count, valarray count.
:
If the current size is greater than count, the valarray is reduced to its first count elements.
Google.
. .

count
:
new size of the container
Google.
. .
value
:
the value to initialize the new elements with
Google.
. .

()

.

valarray
(public -) []

Web Proxy Viewer  |  New URL  |  Original Page