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