Set.insert

Inserts a new element.

  1. size_t insert(T value)
    struct Set(T, alias hasher = hash)
    size_t
    insert
    ()
    (
    ref T value
    )
    if (
    isHashFunction!(hasher, T)
    )
  2. size_t insert(T value)
  3. size_t insert(R range)

Parameters

value T

Element value.

Return Value

Type: size_t

Amount of new elements inserted.

Meta