Vector.empty

Returns whether the vector is empty (i.e. whether its length is 0).

struct Vector
@property const scope pure nothrow @safe @nogc
bool
empty
()

Examples

Vector!(int, 10) vec;
assert(vec.empty);

vec.append(42);
assert(!vec.empty);

Meta