# std.ArrayList: insertSlice avoids extra memcpy · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/9d765b5ab5662622e8e2465e930d3905ed4612a4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 9d765b5ab5662622e8e2465e930d3905ed4612a4

Requested commit: 9d765b5ab5662622e8e2465e930d3905ed4612a4

Commit: 9d765b5ab5662622e8e2465e930d3905ed4612a4

Tree: e88b93e9891a10f0b39d8d42ca8d000d29317cbf

Author: Lucas Santos

Committer: Andrew Kelley

## Message

```
std.ArrayList: insertSlice avoids extra memcpy

Includes a more robust implementation of replaceRange, which updates the
ArrayListUnmanaged if state changes in the managed part of the code
before returning an error.

Co-authored-by: Andrew Kelley <andrew@ziglang.org>

```

## Parents

- [e919fbea9fd62e55ebbfb0739a2a468c93673e93](https://git.cafe/gitcafe/zig/commit/e919fbea9fd62e55ebbfb0739a2a468c93673e93?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/9d765b5ab5662622e8e2465e930d3905ed4612a4?format=markdown)
