| Home | Libraries | People | FAQ | More

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

Copy assignment.

<h7> Synopsis </h7>

    template<
        class OtherAlloc>
    basic_flat_buffer&
    operator=(
        basic_flat_buffer< OtherAlloc > const& other);

<h7> Description </h7>

The container is assigned with the contents of `other` using copy semantics. The maximum size will be the same as the copied object. After the copy, `this` will have zero writable bytes.

<h7> Parameters </h7>

Name | Description
--- | ---
`other` | The object to copy from.

<h7> Exceptions </h7>

Type | Thrown On
--- | ---
`std::length_error` | if `other.size()` exceeds the maximum allocation size of the allocator.