[#boost-urls-static_url-remove_scheme] = xref:boost/urls/static_url/remove_scheme.adoc[boost::urls::static_url::remove_scheme] :relfileprefix: ../../../ :mrdocs: Remove the scheme == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/static_url.hpp#L351[boost/url/static_url.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/static_url.adoc[static_url]& remove_scheme(); ---- == Description This function removes the scheme if it is present. == Example [,cpp] ---- assert( url("http://www.example.com/index.htm" ).remove_scheme().buffer() == "//www.example.com/index.htm" ); ---- == Postconditions [,cpp] ---- this->has_scheme() == false && this->scheme_id() == scheme::none ---- == Complexity Linear in `this‐>size()`. == Exception Safety Throws nothing. == BNF [,cpp] ---- URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] ---- == Specification * https://datatracker.ietf.org/doc/html/rfc3986#section-3.1[] == Return Value `*this` == See Also xref:boost/urls/static_url/set_scheme.adoc[`set_scheme`]. [.small]#Created with https://www.mrdocs.com[MrDocs]#