![]() |
Home | Libraries | People | FAQ | More |
(Inherited from url_view_base
)
Return true if an authority is present.
bool has_authority() const;
This function returns true if the url contains an authority. The presence of an authority is denoted by a double slash ("//") at the beginning or after the scheme.
assert( [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "http://www.example.com/index.htm" ).[link url.ref.boost__urls__static_url_base.has_authority `has_authority`]() );
Constant.
Throws nothing.
[link url.ref.boost__urls__static_url_base.authority `authority`] = [ [link url.ref.boost__urls__static_url_base.userinfo `userinfo`] "@" ] [link url.ref.boost__urls__static_url_base.host `host`] [ ":" [link url.ref.boost__urls__static_url_base.port `port`] ] URI = [link url.ref.boost__urls__static_url_base.scheme `scheme`] ":" hier-part [ "?" [link url.ref.boost__urls__static_url_base.query `query`] ] [ "#" [link url.ref.boost__urls__static_url_base.fragment `fragment`] ] absolute-URI = [link url.ref.boost__urls__static_url_base.scheme `scheme`] ":" hier-part [ "?" [link url.ref.boost__urls__static_url_base.query `query`] ] URI-reference = URI / relative-[link url.ref.boost__urls__grammar__ref `ref`] relative-[link url.ref.boost__urls__grammar__ref `ref`] = relative-part [ "?" [link url.ref.boost__urls__static_url_base.query `query`] ] [ "#" [link url.ref.boost__urls__static_url_base.fragment `fragment`] ] hier-part = "//" [link url.ref.boost__urls__static_url_base.authority `authority`] [link url.ref.boost__urls__static_url_base.path `path`]-abempty ; (more...) relative-part = "//" [link url.ref.boost__urls__static_url_base.authority `authority`] [link url.ref.boost__urls__static_url_base.path `path`]-abempty ; (more...)