phobos-next v0.4.6 (2022-11-25T12:27:21Z)
Home
Dub
Repo
FlatHashMap.insert
nxt
container
flat_hashmap
FlatHashMap
Insert or replace
value
at
key
.
InsertionStatus
insert
(T element)
InsertionStatus
insert
(K key, V value)
struct
FlatHashMap
(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), Allocator = Mallocator, bool borrowChecked = false, bool useSmallLinearSearch = true, bool usePrimeCapacity = false)
static if
(
hasValue
)
InsertionStatus
insert
()
(
K
key
,
V
value
)
if
(
isNullable
!
K
&&
isAllocator
!
Allocator
)
Meta
Source
See Implementation
nxt
container
flat_hashmap
FlatHashMap
aliases
ElementType
Flags
KeyType
Nullifier
StoreK
ValueType
keyEqualPredFn
constructors
this
destructors
~this
enums
Flag
InsertionStatus
functions
averageProbeCount
clear
contains
containsUsingLinearSearch
containsWithHoleMoving
dup
empty
get
getKeyRef
insert
insertAndReturnElement
insertN
opBinaryRight
opEquals
opIndex
opIndexAssign
opIndexOpAssign
opOpAssign
rawStore
rehashingRemoveN
remove
reserveExtra
totalProbeCount
tryGetElementFromCtorParams
manifest constants
growScaleP
growScaleQ
hasAddressLikeKey
hasHoleableKey
hasValue
holeKeyAddress
holeKeyOffset
isBorrowChecked
nullKeyElement
passElementByValue
postblits
this(this)
properties
binCount
length
static functions
holeKeyConstant
isHoleKeyConstant
isOccupiedBin
keyOf
valueOf
withCapacity
withElements
static variables
borrowedErrorMessage
structs
T
templates
isScopedKeyType
variables
assumeNonFullHaystack
growInPlaceFlag
Insert or replace value at key.