[#bsl-stoul-07] = xref:bsl.adoc[bsl]::stoul :relfileprefix: ../ :mrdocs: `stoul` overloads == Synopses Declared in `<bslstl_string.h>` Parse the specified `str` as an unsigned long integer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned long xref:bsl/stoul-0f.adoc[stoul]( xref:bsl/string.adoc[string] const& str, std::size_t* pos = 0, int base = 10); ---- [.small]#xref:bsl/stoul-0f.adoc[_» more..._]# Same as `stoul` for `wstring`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned long xref:bsl/stoul-06.adoc[stoul]( xref:bsl/wstring.adoc[wstring] const& str, std::size_t* pos = 0, int base = 10); ---- [.small]#xref:bsl/stoul-06.adoc[_» more..._]# == Return Value `unsigned long` value parsed from `str` == Parameters [cols="1,4"] |=== | Name| Description | *str* | string to parse | *pos* | optional output for the index after the parsed value | *base* | numeric base for parsing (0 or 2..36) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#