Function Vector.empty

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

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

Examples

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

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