RedBlackTree.toHash

Generates a hash for the tree. Note that with a custom comparison function it may not hold that if two rbtrees are equal, the hashes of the trees will be equal.

class RedBlackTree(T, alias less = "a < b", bool allowDuplicates = false)
override nothrow @safe
size_t
toHash
()
if (
is(typeof(binaryFun!less(T.init, T.init)))
)

Meta

Suggestion Box / Bug Report