VEBtree.dump

prototype of an exporting function. For a proper save function, the undelying data structure has to be a bit array.

class VEBtree
@property const
dump
()

Examples

static if(vdebug){writeln("UT: vT, dump.   "); /*writeln("seed: ", currentSeed);*/} 

auto p = new VEBtree(100); 
assert(p.empty); 
p.insert(5); 
p.insert(100); 
assert(!p.empty); 
assert(p.successor(0) == 5); 
assert(p.successor(4) == 5); 
assert(p.successor(5) == 100); 
auto s = p.dump; 
static assert(isInputRange!(typeof(s)));

assert(s.front == 5); 

s.popFront; 

assert(!s.empty); 
assert(s.front == 95); 
s.popFront; 
assert(s.empty); 

Meta