![]() |
Home | Libraries | People | FAQ | More |
Remove the origin component.
static_url& remove_origin();
This function removes the origin, which consists of the scheme and authority.
assert( url( "http://www.example.com/index.htm" ).[link url.ref.boost__urls__static_url.remove_origin `remove_origin`]().[link url.ref.boost__urls__static_url.buffer `buffer`]() == "/index.htm" );
this->[link url.ref.boost__urls__static_url.scheme_id `scheme_id`]() == [link url.ref.boost__urls__scheme `scheme::none`] && this->[link url.ref.boost__urls__static_url.has_authority `has_authority`]() == false
Linear in this->size()
.
Throws nothing.