![]() |
Home | Libraries | People | FAQ | More |
Remove the port.
static_url& remove_port();
If a port exists, it is removed. The rest of the authority is unchanged.
assert( url( "http://www.example.com:80" ).[link url.ref.boost__urls__static_url.remove_port `remove_port`]().[link url.ref.boost__urls__static_url.authority `authority`]().[link url.ref.boost__urls__static_url.buffer `buffer`]() == "www.example.com" );
this->[link url.ref.boost__urls__static_url.has_port `has_port`]() == false && this->[link url.ref.boost__urls__static_url.port_number `port_number`]() == 0 && this->[link url.ref.boost__urls__static_url.port `port`]() == ""
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.port `port`] = *DIGIT
/root/project/libs/url/include/boost/url/static_url.hpp