# std.BufSet: add clone and cloneWithAllocator · gitcafe/zig

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

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

Visibility: public

Requested revision: d1a46548349a902c30057b3ba66ebad9bc25bdd2

Requested commit: d1a46548349a902c30057b3ba66ebad9bc25bdd2

Commit: d1a46548349a902c30057b3ba66ebad9bc25bdd2

Tree: 1a1c3c29278ab06c204a01d2f23ddc8366146ed5

Author: Motiejus Jakštys

Committer: Andrew Kelley

## Message

```
std.BufSet: add clone and cloneWithAllocator

Following how ArrayList and HashMap does things. This is useful when one
wants to, ahem, clone the BufSet.

```

## Parents

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

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