Set.insert

Insert an element in the container. If allowDuplicates is false, this can fail and return false if the already contains an element with equivalent key.

struct Set(K, alias less = "a < b", bool allowDuplicates = false)
nothrow @nogc
bool
insert
(
K key
)

Return Value

Type: bool

true if the insertion took place.

Meta