ocean ~v6.x.x (2022-01-14T16:08:36.1174149)
Dub
Repo
TwoWayMap.opIndexAssign
ocean
core
SmartEnum
TwoWayMap
Adds a mapping.
void
opIndexAssign
(KeyType a, ValueType b)
struct
TwoWayMap
(A)
void
opIndexAssign
(
KeyType
a
,
ValueType
b
)
out { assert (this.a_to_index[a] < this.keys_list.length); assert (this.b_to_index[b] < this.values_list.length); }
void
opIndexAssign
(ValueType b, KeyType a)
Parameters
a
KeyType
item to map to
b
ValueType
item to map to
Meta
Source
See Implementation
ocean
core
SmartEnum
TwoWayMap
aliases
KeyType
ValueType
functions
indexOf
keys
length
opApply
opAssign
opBinaryRight
opIndex
opIndexAssign
rehash
values
Adds a mapping.