Function String.empty

Returns whether the string is empty.

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

Returns

true if the string is empty, false otherwise.

Example

String s;
assert(s.empty);

s.insertBack('K');
assert(!s.empty);