[#bsl-basic_string-0faf-npos]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::npos
:relfileprefix: ../../
:mrdocs:

Value used to denote &quot;not&hyphen;a&hyphen;position&quot;, guaranteed to be outside the range `&lsqb;0 &period;&period; max&lowbar;size()&rsqb;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type] const npos = &#126;size&lowbar;type(0);
----


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