[#boost-urls-static_url-remove_scheme] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/static_url.adoc[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#L349[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 * link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.1[ 3.1. Scheme (rfc3986)] == See Also xref:boost/urls/url_base/set_scheme.adoc[set_scheme]. [.small]#Created with https://www.mrdocs.com[MrDocs]#