redBlackTree

with template functions

  1. auto redBlackTree(E[] elems...)
  2. auto redBlackTree(E[] elems...)
  3. auto redBlackTree(E[] elems...)
    redBlackTree
    (
    alias less
    E
    )
    ()
    if (
    __traits(compiles,
    (
    E a
    ,
    E b
    )
    => mixin (less)
    )
    )

Examples

auto rbt1 = redBlackTree(0, 1, 5, 7);
auto rbt2 = redBlackTree!string("hello", "world");
auto rbt3 = redBlackTree!true(0, 1, 5, 7, 5);
auto rbt4 = redBlackTree!"a > b"(0, 1, 5, 7);

Meta