Dereferences a thing
Could be a range, a pointer, or a nullable.
1 import std.typecons: nullable; 2 auto a = nullable(1); 3 auto b = new int(1); 4 auto c = [1]; 5 6 assert(a.deref == 1); 7 assert(b.deref == 1); 8 assert(c.deref == 1);
See Implementation
- 0.0.1
Dereferences a thing
Could be a range, a pointer, or a nullable.