boost::urls::url_view_base::has_fragment

Return true if a fragment is present

Synopsis

Declared in <include/boost/url/url_view_base.hpp>

bool
has_fragment() const noexcept;

Description

This function returns true if the url contains a fragment. An empty fragment is distinct from no fragment.

assert( url_view( "http://www.example.com/index.htm#anchor" ).has_fragment() );

Constant.

Throws nothing.

URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] relative-ref = relative-part [ "?" query ] [ "#" fragment ]
  • 3.5. Fragment (rfc3986)
  • See Also

    encoded_fragment , fragment .

    Created with MrDocs