MapImpl.insert

Insert an element in the container, if the container doesn't already contain an element with equivalent key.

struct MapImpl(K, V, alias less = KeyCompareDefault!Key, bool allowDuplicates = false, bool ownsMemory = false)
@nogc @trusted
bool
insert
(
K key
,)

Return Value

Type: bool

true if the insertion took place.

Meta