![]() |
Home | Libraries | People | FAQ | More |
Remove the scheme.
static_url& remove_scheme();
This function removes the scheme if it is present.
assert( url( "http://www.example.com/index.htm" ).[link url.ref.boost__urls__static_url.remove_scheme `remove_scheme`]().[link url.ref.boost__urls__static_url.buffer `buffer`]() == "//www.example.com/index.htm" );
this->[link url.ref.boost__urls__static_url.has_scheme `has_scheme`]() == false && this->[link url.ref.boost__urls__static_url.scheme_id `scheme_id`]() == [link url.ref.boost__urls__scheme `scheme::none`]
Linear in this->size()
.
Throws nothing.
URI = [link url.ref.boost__urls__scheme `scheme`] ":" hier-part [ "?" [link url.ref.boost__urls__static_url.query `query`] ] [ "#" [link url.ref.boost__urls__static_url.fragment `fragment`] ]
/root/project/libs/url/include/boost/url/static_url.hpp