![]() |
Home | Libraries | People | FAQ | More |
Remove the port.
url& remove_port();
If a port exists, it is removed. The rest of the authority is unchanged.
assert( [link url.ref.boost__urls__url.url `url`]( "http://www.example.com:80" ).[link url.ref.boost__urls__url.remove_port `remove_port`]().[link url.ref.boost__urls__url.authority `authority`]().[link url.ref.boost__urls__url.buffer `buffer`]() == "www.example.com" );
this->[link url.ref.boost__urls__url.has_port `has_port`]() == false && this->[link url.ref.boost__urls__url.port_number `port_number`]() == 0 && this->[link url.ref.boost__urls__url.port `port`]() == ""
Linear in this->size()
.
Throws nothing.
[link url.ref.boost__urls__url.authority `authority`] = [ [link url.ref.boost__urls__url.userinfo `userinfo`] "@" ] [link url.ref.boost__urls__url.host `host`] [ ":" [link url.ref.boost__urls__url.port `port`] ] [link url.ref.boost__urls__url.port `port`] = *DIGIT
/root/project/libs/url/include/boost/url/url.hpp