![]() |
Home | Libraries | People | FAQ | More |
Return true if a fragment is present.
bool has_fragment() const;
This function returns true if the url contains a fragment. An empty fragment is distinct from no fragment.
assert( [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "http://www.example.com/index.htm#anchor" ).[link url.ref.boost__urls__url.has_fragment `has_fragment`]() );
Constant.
Throws nothing.
URI = [link url.ref.boost__urls__url.scheme `scheme`] ":" hier-part [ "?" [link url.ref.boost__urls__url.query `query`] ] [ "#" [link url.ref.boost__urls__url.fragment `fragment`] ] relative-[link url.ref.boost__urls__grammar__ref `ref`] = relative-part [ "?" [link url.ref.boost__urls__url.query `query`] ] [ "#" [link url.ref.boost__urls__url.fragment `fragment`] ]