Vector!(int, 6) vec = Vector!(int, 6).build(1, 2, 3); assert(vec != null); assert(null != vec); assert(vec == [1, 2, 3]); assert([1, 2, 3] == vec); assert(vec == typeof(vec).build(1, 2, 3)); assert(typeof(vec).build(1, 2, 3) == vec); import std.range : only; assert(vec == only(1, 2, 3)); assert(only(1, 2, 3) == vec);
Compares the contents of a vector with another vector, range or null.
Returns true if they are equal, false otherwise