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

Aliases

ElementType
alias ElementType = E
Undocumented in source.
This
alias This = typeof(this)
Undocumented in source.
put
alias put = insert
Undocumented in source.

Functions

insert
void insert(E e)

Insert element e.

remove
void remove(E e)

Remove element e.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

contains
E contains [@property setter]
opBinary
typeof(this) opBinary [@property setter]
opBinaryRight
E opBinaryRight [@property setter]
opOpAssign
typeof(this) opOpAssign [@property setter]

Check if element e is present/stored/contained.

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