Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 41715b1c50.
PrevUpHomeNext
static_url_base::remove_origin

(Inherited from url_base)

Remove the origin component.

Synopsis
url_base&
remove_origin();
Description

This function removes the origin, which consists of the scheme and authority.

Example
assert( url( "http://www.example.com/index.htm" ).remove_origin().buffer() == "/index.htm" );
Postconditions
this->scheme_id() == scheme::none && this->has_authority() == false
Complexity

Linear in this->size().

Exception Safety

Throws nothing.


PrevUpHomeNext