StaticDenseSetFilter

Store presence of elements of type E in a set in the range 0 .. length. Can be seen as a generalization of std.typecons.BitFlags to integer types.

Typically used to implement very fast membership checking in sets of enumerators.

TODO Add operators for bitwise and and or operations similar to https://dlang.org/library/std/typecons/bit_flags.html

Members

Functions

contains
bool contains(E e)

Check if element e is present/stored/contained.

insert
void insert(E e)

Insert element e.

opBinary
typeof(this) opBinary(typeof(this) e)
opBinaryRight
bool opBinaryRight(E e)
opOpAssign
typeof(this) opOpAssign(typeof(this) e)

Check if element e is present/stored/contained.

remove
void remove(E e)

Remove element e.

Static functions

asFull
typeof(this) asFull()

Construct a full set .

withValuesOrFull
typeof(this) withValuesOrFull(R r)

Construct from r if r is non-empty, otherwise construct a full set.

Meta