[#bsl-stoi-0c]
= xref:bsl.adoc[bsl]::stoi
:relfileprefix: ../
:mrdocs:

Parse the specified `str` as a signed integer&semi; see `stol` for details&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
stoi(
    xref:bsl/string.adoc[string] const& str,
    std::size&lowbar;t* pos = 0,
    int base = 10);
----


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