| Home | Libraries | People | FAQ | More

###### 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 `basic_flat_buffer::data` or `basic_flat_buffer::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.