| Home | Libraries | People | FAQ | More

###### basic_flat_buffer::operator= (1 of 3 overloads)

Move Assignment.

<h7> Synopsis </h7>

    basic_flat_buffer&
    operator=(
        basic_flat_buffer&& other);

<h7> Description </h7>

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.

<h7> Parameters </h7>

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.

<h7> Exception Safety </h7>

No-throw guarantee.