mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 10:52:36 +00:00
Refresh the ValueStore api description in idioms.md (#4586)
There is no `Set` method, so remove that, and include `AddDefaultValue` instead.
This commit is contained in:
1 parent
e09bf82d36
commit
dcfdf12315
1 file changed
+2
-1
@@ -145,7 +145,8 @@ The indices typically use `IdBase`.
|
||||
`ValueStore`s APIs follow the shape of simple array access and mutation:
|
||||
|
||||
- `Add` which takes a value and returns the index.
|
||||
- `Set` which takes a value and index to modify.
|
||||
- `AddDefaultValue` which adds a default-constructed value and returns the
|
||||
index.
|
||||
- `Get` takes an index and returns a reference to the value (possibly a
|
||||
constant reference).
|
||||
- Other vector-like functionality, including `size` or `Reserve`
|
||||
|
||||
Reference in new issue
Block a user