bsl::stoul

Parse the specified str as an unsigned long integer.

Synopsis

Declared in <bslstl_string.h>

unsigned long
stoul(
    string const& str,
    std::size_t* pos = 0,
    int base = 10);

Return Value

unsigned long value parsed from str

Parameters

NameDescription
strstring to parse
posoptional output for the index after the parsed value
basenumeric base for parsing (0 or 2..36)