A MutableString nominally represents a modifiable, contiguous
buffer whose value_type
is
char. Objects which satisfy these requirements may be appended to and assigned
to by algorithms which store the result of applying percent-decoding to various
components of URLs and other things.
In this table:
T
is a type meeting the
requirements of MutableString
s
is a possibly-const
value of type T
first
, last
are InputIterator
whose value_type
is
char
and form the valid
character sequence [ first, last )
Table 1.11. Valid expressions
Expression |
Type |
Semantics, Pre/Post-conditions |
---|---|---|
T::value_type |
|
|
s.assign(first,last) |
Assigns the characters in the range |
|
s.append(first,last) |
Appends the characters in the range |
struct MutableString { template< class InputIt > void assign( InputIt first, InputIt last ); template< class InputIt > void append( InputIt first, InputIt last ); };