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
Assign to the string.
template< typename InputIterator> constexpr basic_static_string& assign( InputIterator first, InputIterator last);
Replaces the contents with the characters in the range {first, last).
Linear in std::distance(first, last).
Strong guarantee.
|
Type |
Description |
|---|---|
|
|
The type of the iterators. |
InputIteratorsatisfies
InputIterator.
*this
|
Name |
Description |
|---|---|
|
|
An iterator referring to the first character to assign. |
|
|
An iterator past the end of the range to assign from. |
|
Type |
Thrown On |
|---|---|
|
|
|