Vector.opBinaryRight

Operator in

struct Vector
scope const
bool
opBinaryRight
(
string op
Elm
)
(
scope auto ref Elm elm
)
if (
op == "in"
)

Examples

Vector!(int, 6) vec = Vector!(int, 6).build(1, 2, 3);

assert(1 in vec);
assert(42L !in vec);

Meta