assign overloads
Declared in <bslstl_stringref.h>
Bind this string reference to the same string as stringRef.
void
assign(StringRefImp<CHAR_TYPE> const& stringRef);
» more...
Bind this string reference to the specified string.
void
assign(bsl::basic_string<CHAR_TYPE> const& str);
» more...
Bind this string reference to a null-terminated C string.
void
assign(CHAR_TYPE const* data);
» more...
Bind this string reference to the specified iterator range.
void
assign(
const_iterator begin,
const_iterator end);
» more...
Assign this ref to the specified data of the specified length.
void
assign(
CHAR_TYPE const* data,
size_type length);
» more...
Bind this string reference to the specified character sequence.
template<class INT_TYPE>
void
assign(
CHAR_TYPE const* data,
INT_TYPE length)
requires bsl::is_integral<INT_TYPE>::value;
» more...
| Name | Description |
|---|---|
| stringRef | string reference to assign from |
| str | string whose contents are referenced |
| data | null-terminated character string to reference |
| begin | start of the character sequence to reference |
| end | one past the end of the character sequence |
| length | number of characters in the sequence |