Captures.opCast

bool opCast(T: bool)() @safe const nothrow

Explicit cast to bool. Useful as a shorthand for !(x.empty) in if and assert statements.

import std.regex;

assert(!matchFirst("nothing", "something"));