# Add \`getPtrConstAssertContains\(\.\.\.\)\` for compatibility with a \`const\` \`std.EnumMap\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 5c1428ea9db6c455fdd36b60fe6cd27b9e8eae4d

Requested commit: 5c1428ea9db6c455fdd36b60fe6cd27b9e8eae4d

Commit: 5c1428ea9db6c455fdd36b60fe6cd27b9e8eae4d

Tree: e5a15b3e227ceea85f04d53ff3c53b22327acf10

Author: Eric Eastwood

Committer: GitHub

## Message

```
Add `getPtrConstAssertContains(...)` for compatibility with a `const` `std.EnumMap`

This way people can use `const` with a `std.EnumMap`
and be able to `getPtrAssertContains(...)` like the
would with a mutable `var` instance.

Aligns with the existing `getPtr(...)`/`getPtrConst(...)`
methods.
```

## Parents

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

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