HashSet.opCast

Implement boolean conversion for a set.

struct HashSet(T)
@nogc @safe pure nothrow
bool
opCast
const
(
T : bool
)
(
)
if (
isAssignmentCopyable!(Unqual!T)
)

Return Value

Type: bool

True if this set is not empty.

Meta