| Home | Libraries | People | FAQ | More

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

Copy assignment.

<h7> Synopsis </h7>

    array&
    operator=(
        array const& other);

<h7> Description </h7>

The contents of the array are replaced with an element-wise copy of `other`.

<h7> Complexity </h7>

Linear in `size()` plus `other.size()`.

<h7> Exception Safety </h7>

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

<h7> Parameters </h7>

Name | Description
--- | ---
`other` | The array to copy.