The OpenD Programming Language

RedBlackTree.opBinaryRight

in operator. Check to see if the given element exists in the container.

Complexity: O(log(n))

class RedBlackTree(T, alias less = "a < b", bool allowDuplicates = false)
const
bool
opBinaryRight
(
string op
)
if (
op == "in"
)
if (
is(typeof(binaryFun!less(T.init, T.init)))
)

Meta