Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
decode_view::starts_with (1 of 2 overloads)

Checks if the string begins with the given prefix.

Synopsis
bool
starts_with(
    core::string_view s) const;
Example
assert( [link url.ref.boost__urls__decode_view.decode_view `decode_view`]( "Program%20Files" ).[link url.ref.boost__urls__decode_view.starts_with `starts_with`]( "Program" ) );
Complexity

Linear.

Exception Safety

Throws nothing.


PrevUpHomeNext