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
url::has_scheme

Return true a scheme is present.

Synopsis
bool
has_scheme() const;
Description

This function returns true if this contains a scheme.

Example
assert( url_view( "http://www.example.com" ).has_scheme() );
Complexity

Constant.

Exception Safety

Throws nothing.

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

absolute-URI    = scheme ":" hier-part [ "?" query ]

scheme          = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
Specification
See Also

scheme, scheme_id.


PrevUpHomeNext