:relfileprefix: ../../../ [#boost-urls-url-remove_scheme] = xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/url.adoc[pass:[url]]::remove_scheme Remove the scheme == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:boost/urls/url.adoc[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] .