Struct HashMap
struct HashMap(TKey, TValue, Traits, Allocator)
if (is(typeof(Traits .clearValue) : TKey));
Constructors
Name | Description |
---|---|
this
(allocator)
|
Fields
Name | Type | Description |
---|---|---|
m_allocator
|
HashMap | |
m_length
|
size_t | |
m_resizing
|
bool | |
m_table
|
HashMap |
Properties
Name | Type | Description |
---|---|---|
allocator [get]
|
HashMap | |
length [get]
|
size_t |
Methods
Name | Description |
---|---|
AW
(a)
|
|
byKey
()
|
|
byKey
()
|
|
byKeyValue
()
|
|
byKeyValue
()
|
|
bySlot
()
|
|
bySlot
()
|
|
byValue
()
|
|
byValue
()
|
|
clear
()
|
|
findIndex
(key)
|
|
findInsertIndex
(key)
|
|
get
(key, default_value)
|
|
get
(key, default_value)
|
|
getNothrow
(key, default_value)
|
Workaround #12647 |
grow
(amount)
|
|
makeUnique
()
|
|
opApply
(del)
|
|
opBinaryRight
(key)
|
|
opIndex
(key)
|
|
opIndexAssign
(value, key)
|
|
remove
(key)
|
|
reserve
(amount)
|
|
resize
(new_size)
|
Inner structs
Name | Description |
---|---|
TableEntry
|
Aliases
Name | Description |
---|---|
AllocatorInstanceType
|
|
AllocatorType
|
|
Key
|
|
Value
|