:relfileprefix: ../../../
[#boost-urls-decode_view-starts_with-0b]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/decode_view.adoc[pass:[decode_view]]::starts_with


Checks if the string begins with the given prefix


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/decode_view.hpp#L391[boost/url/decode_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
bool
starts_with(char ch) const noexcept;
----

== Description


=== Example
[,cpp]
----
assert( decode_view( "Program%20Files" ).starts_with('P') );
----

=== Complexity

Constant.

=== Exception Safety

Throws nothing.








