- indexOf
size_t* indexOf(KeyType a)
Gets the index of an element of type A in the list of all elements of
type A.
- indexOf
size_t* indexOf(cstring b)
Gets the index of an element of type B in the list of all elements of
type B.
- keys
KeyType[] keys()
- length
size_t length()
- opApply
int opApply(int delegate(ref KeyType a, ref ValueType b) dg)
foreach iterator over the mapping.
- opApply
int opApply(int delegate(ref size_t index, ref KeyType a, ref ValueType b) dg)
foreach iterator over the mapping, including each value's index.
- opAssign
void opAssign(ValueType[KeyType] assoc_array)
Assigns a set of mappings from an associative array.
- opAssign
void opAssign(KeyType[ValueType] assoc_array)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinaryRight
KeyType* opBinaryRight(cstring b)
in operator - performs a lookup of an item A in the map
corresponding to an item B.
- opBinaryRight
ValueType* opBinaryRight(KeyType a)
opIn_r operator - performs a lookup of an item B in the map
corresponding to an item A.
- opIndex
KeyType opIndex(cstring b)
opIndex operator - performs a lookup of an item A in the map
corresponding to an item B.
- opIndex
ValueType opIndex(KeyType a)
opIndex operator - performs a lookup of an item B in the map
corresponding to an item A.
- opIndexAssign
void opIndexAssign(KeyType a, ValueType b)
- opIndexAssign
void opIndexAssign(ValueType b, KeyType a)
Undocumented in source.
- rehash
void rehash()
- values
ValueType[] values()
Two way map struct template