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

std::list::resize cppreference.com
cppreference.com

std::list::resize

cppreference.com

<metanoindex/>

<tbody> </tbody>
void resize( size_type count, T value = T() ); void resize( size_type count ); void resize( size_type count, const value_type& value);
( C++11)
( C++11)
( C++11)
, count .
:
Resizes the container 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, count.
:
If the current size is greater than count, the container 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.
. .

()

:
linear in the size of the container
Google.
. .

.


(public -) []

Web Proxy Viewer  |  New URL  |  Original Page