Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit e70692e4d8.
PrevUpHomeNext
static_url::has_fragment

(Inherited from url_view_base)

Return true if a fragment is present.

Synopsis
bool
has_fragment() const;
Description

This function returns true if this contains a fragment. An empty fragment is distinct from having no fragment.

Example
assert( url_view( "http://www.example.com/index.htm#a%2D1" ).has_fragment() );
Complexity

Constant.

Exception Safety

Throws nothing.

BNF
URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

relative-ref  = relative-part [ "?" query ] [ "#" fragment ]
Specification
See Also

encoded_fragment, fragment.


PrevUpHomeNext