Captures.opCast

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

import std.regex;

assert(!matchFirst("nothing", "something"));
struct Captures(R)
@safe const nothrow
bool
opCast
(
T : bool
)
()

Meta