ocean ~master (2021-10-22T21:44:26.740458)
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.