![]() |
Home | Libraries | People | FAQ | More |
Remove the authority.
static_url& remove_authority();
This function removes the authority, which includes the userinfo, host, and a port if present.
assert( url( "http://example.com/echo.cgi" ).[link url.ref.boost__urls__static_url.remove_authority `remove_authority`]().[link url.ref.boost__urls__static_url.buffer `buffer`]() == "http:/echo.cgi" );
this->[link url.ref.boost__urls__static_url.has_authority `has_authority`]() == false && this->[link url.ref.boost__urls__static_url.has_userinfo `has_userinfo`]() == false && this->[link url.ref.boost__urls__static_url.has_port `has_port`]() == false
Linear in this->size()
.
Throws nothing.
[link url.ref.boost__urls__static_url.authority `authority`] = [ [link url.ref.boost__urls__static_url.userinfo `userinfo`] "@" ] [link url.ref.boost__urls__static_url.host `host`] [ ":" [link url.ref.boost__urls__static_url.port `port`] ] [link url.ref.boost__urls__static_url.userinfo `userinfo`] = *( unreserved / pct-encoded / sub-delims / ":" ) [link url.ref.boost__urls__static_url.host `host`] = IP-literal / IPv4address / reg-[link url.ref.boost__urls__host_type `name`] [link url.ref.boost__urls__static_url.port `port`] = *DIGIT
/root/project/libs/url/include/boost/url/static_url.hpp