[#bsl-basic_string-01d-starts_with-0c]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-01d.adoc[basic&lowbar;string&lt;char8&lowbar;t&gt;]::starts&lowbar;with
:relfileprefix: ../../
:mrdocs:

`starts&lowbar;with` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

Return `true` if this string starts with the specified `character`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-01d/starts_with-01.adoc[starts&lowbar;with](char8&lowbar;t character) const noexcept;
----

[.small]#xref:bsl/basic_string-01d/starts_with-01.adoc[_» more&period;&period;&period;_]#

Return `true` if this string starts with the specified `characterString`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-01d/starts_with-09.adoc[starts&lowbar;with](basic&lowbar;string&lowbar;view&lt;char8&lowbar;t, char&lowbar;traits&lt;char8&lowbar;t&gt;&gt; characterString) const noexcept;
----

[.small]#xref:bsl/basic_string-01d/starts_with-09.adoc[_» more&period;&period;&period;_]#

Return `true` if this string starts with the specified C&hyphen;string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-01d/starts_with-0f.adoc[starts&lowbar;with](char8&lowbar;t const* characterString) const;
----

[.small]#xref:bsl/basic_string-01d/starts_with-0f.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
