cachetools.containers.set

Set implemented as hash table

Inherits @nogc and @safe properties from key properties.

Implements next set ops

    create - fill set from range
    add - add item to set; O(1)
    remove - remove item from set if present; O(1)
    length - number of items in set; O(1)
    join - join sets; O(N)
    intersection - create intersection of two sets; O(N)
    difference - create difference of two sets; O(N)
    iterate - create iterator over set items;
    in - if element presented in set; O(1)

Members

Functions

set
auto set(R r)

create set from input range

Structs

Set
struct Set(K)

Set structure

Meta