Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
array::operator= (3 of 3 overloads)

Assignment.

Synopsis
array&
operator=(
    std::initializer_list< value_ref > init);
Description

The contents of the array are replaced with a copy of the values in the initializer-list.

Complexity

Linear in this->size() plus init.size().

Exception Safety

Strong guarantee. Calls to memory_resource::allocate may throw.

Parameters

Name

Description

init

The initializer list to copy.


PrevUpHomeNext