# std.HashMap: add ensureUnusedCapacity and ensureTotalCapacity · gitcafe/zig

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

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

Visibility: public

Requested revision: 298a65ff4b4efc46c877309be22550f023f49758

Requested commit: 298a65ff4b4efc46c877309be22550f023f49758

Commit: 298a65ff4b4efc46c877309be22550f023f49758

Tree: 592894e1e0af7356b50ae6ab68e337f3915b1849

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.HashMap: add ensureUnusedCapacity and ensureTotalCapacity

and deprecated ensureCapacity. This matches the pattern set by ArrayList
and ArrayHashMap already.

```

## Parents

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

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