HashSet.opBinaryRight

Provide the 'in' operator for sets.

Test if the given value is present in the set.

  1. bool opBinaryRight(ref T value)
  2. bool opBinaryRight(T value)
    struct HashSet(T)
    @nogc @safe pure nothrow
    bool
    opBinaryRight
    const
    (
    string op
    T
    )
    ()
    if (
    op == "in"
    )
    if (
    isAssignmentCopyable!(Unqual!T)
    )

Parameters

value
Type: T

The value to test with.

Return Value

Type: bool

true if the value is in the set.

Meta