Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2021. The current version is 1.90.0.
Return a substring.
constexpr basic_static_string substr( size_type pos = 0, size_type count = npos) const;
Returns a substring of the string.
Strong guarantee.
A string object containing the characters {data() + pos, std::min(count, size() - pos)).
|
Name |
Description |
|---|---|
|
|
The index to being the substring at. The default arugment for
this parameter is |
|
|
The length of the substring. The default arugment for this parameter
is |
|
Type |
Thrown On |
|---|---|
|
|
|