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 a snapshot of the master branch, built from commit e83975fcee.
PrevUpHomeNext
value::operator= (16 of 24 overloads)

Assignment.

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

Replace *this with the value formed by constructing from init and this->storage(). If the initializer list consists of key/value pairs, the resulting object is assigned. Otherwise an array is assigned. The contents of the initializer list are moved to *this using the existing memory resource.

Complexity

Linear in init.size().

Exception Safety

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

Parameters

Name

Description

init

The initializer list to assign from.


PrevUpHomeNext