tango ~master (2021-12-14T19:14:08.8989381)
Dub
Repo
HashMap.replacePair
tango
util
container
HashMap
HashMap
Time complexity: O(1) average; O(n) worst.
class
HashMap
(K, V, alias Hash = Container.hash, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
final
bool
replacePair
(
K
key
,
V
oldElement
,
V
newElement
)
Meta
Source
See Implementation
tango
util
container
HashMap
HashMap
constructors
this
destructors
~this
functions
add
buckets
cache
check
clear
contains
containsKey
containsPair
get
isEmpty
iterator
keyOf
opApply
opIn_r
opIndex
opIndexAssign
remove
removeKey
replace
replaceKey
replacePair
reset
take
threshold
toArray
properties
dup
size
Time complexity: O(1) average; O(n) worst.