BasicString.empty

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

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

Examples

BasicString!char str;
assert(str.empty);

str = "123";
assert(!str.empty);

Meta