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
basic_flat_buffer::operator= (1 of 3 overloads)

Move Assignment.

Synopsis
basic_flat_buffer&
operator=(
    basic_flat_buffer&& other);
Description

The container is assigned with the contents of other using move semantics. The maximum size will be the same as the moved-from object. Buffer sequences previously obtained from other using data or prepare remain valid after the move.

Parameters

Name

Description

other

The object to move from. After the move, the moved-from object will have zero capacity, zero readable bytes, and zero writable bytes.

Exception Safety

No-throw guarantee.


PrevUpHomeNext