![]() |
Home | Libraries | People | FAQ | More |
(Inherited from url_base
)
Remove the query.
url_base& remove_query();
If a query is present, it is removed. An empty query is distinct from having no query.
assert( [link url.ref.boost__urls__url_base.url `url`]( "http://www.example.com?id=42" ).[link url.ref.boost__urls__static_url_base.remove_query `remove_query`]().[link url.ref.boost__urls__static_url_base.buffer `buffer`]() == "http://www.example.com" );
this->[link url.ref.boost__urls__static_url_base.has_query `has_query`]() == false && this->[link url.ref.boost__urls__static_url_base.params `params`]().[link url.ref.boost__urls__params_base.empty `empty`]()
Throws nothing.
[link url.ref.boost__urls__static_url_base.query `query`] = *( pchar / "/" / "?" ) [link url.ref.boost__urls__static_url_base.query `query`]-param = key [ "=" value ] [link url.ref.boost__urls__static_url_base.query `query`]-[link url.ref.boost__urls__static_url_base.params `params`] = [ [link url.ref.boost__urls__static_url_base.query `query`]-param ] *( "&" [link url.ref.boost__urls__static_url_base.query `query`]-param )