Namespaces
Variants
Views
Actions

std::forward_list::resize

From cppreference.com
void resize( size_type count );
void resize( size_type count, const value_type& value);
(since C++11)

Resizes the container to contain count elements.

If the current size is less than count, additional elements are appended and initialized with value.

If the current size is greater than count, the container is reduced to its first count elements.

Contents

[edit] Parameters

count - new size of the container
value - the value to initialize the new elements with

[edit] Return value

(none)

[edit] Complexity

linear in the size of the container

[edit] See also