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_userinfo

(Inherited from url_base)

Remove the userinfo.

Synopsis
url_base&
remove_userinfo();
Description

This function removes the userinfo if present, without removing any authority.

Example
assert( url( "http://user@example.com" ).remove_userinfo().has_userinfo() == false );
Postconditions
this->has_userinfo() == false && this->encoded_userinfo().empty == true
Complexity

Linear in this->size().

Exception Safety

Throws nothing.

BNF
userinfo      = [ [ user ] [ ':' password ] ]

user          = *( unreserved / pct-encoded / sub-delims )
password      = *( unreserved / pct-encoded / sub-delims / ":" )
Specification
See Also

set_encoded_userinfo, set_userinfo.


PrevUpHomeNext