:relfileprefix: ../../../ [#9257747A20FA0B87B73FF4C8046D6C5414EEF442] = Function authority_view::has_password pass:v,q[Return true if a password is present] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- bool has_password() const noexcept; ---- == Description pass:v,q[This function returns true if the] pass:v,q[userinfo is present and contains] pass:v,q[a password.] === Example [,cpp] ---- assert( url_view( "http://jane%2Ddoe:pass@example.com" ).has_password() ); ---- === Complexity pass:v,q[Constant.] === Exception Safety pass:v,q[Throws nothing.] === BNF [,cpp] ---- userinfo = user [ ":" [ password ] ] user = *( unreserved / pct-encoded / sub-delims ) password = *( unreserved / pct-encoded / sub-delims / ":" ) ---- === Specification * link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1[3.2.1. User Information (rfc3986)] == Return Value * `bool`