![]() |
Home | Libraries | People | FAQ | More |
Remove the fragment.
url_base& remove_fragment();
This function removes the fragment. An empty fragment is distinct from having no fragment.
assert( [link url.ref.boost__urls__url_base.url `url`]( "?first=john&last=doe#anchor" ).[link url.ref.boost__urls__url_base.remove_fragment `remove_fragment`]().[link url.ref.boost__urls__url_base.buffer `buffer`]() == "?first=john&last=doe" );
this->[link url.ref.boost__urls__url_base.has_fragment `has_fragment`]() == false && this->[link url.ref.boost__urls__url_base.encoded_fragment `encoded_fragment`]() == ""
Constant.
Throws nothing.
[link url.ref.boost__urls__url_base.fragment `fragment`] = *( pchar / "/" / "?" )