Converts the result to a boolean value. This is synonymous to matches.
True, if the pattern matches the pattern.
if (auto match = matchPath("/path", "/:name")) { assert(match.getPathParam("name") == "path"); } else { assert(false); } if (auto match = matchPath("/path", "/no-match")) { assert(false); }
See Implementation
Converts the result to a boolean value. This is synonymous to matches.