assign overloads
Synopses
Declared in <bslstl_stringref.h>
Bind this string reference to the same string as stringRef.
void
assign(StringRefImp<CHAR_TYPE> const& stringRef);
Bind this string reference to the specified string.
void
assign(bsl::basic_string<CHAR_TYPE> const& str);
Bind this string reference to a null‐terminated C string.
void
assign(CHAR_TYPE const* data);
Bind this string reference to the specified iterator range.
void
assign(
const_iterator begin,
const_iterator end);
Assign this ref to the specified data of the specified length.
void
assign(
CHAR_TYPE const* data,
size_type length);
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;
Parameters
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 |
Created with MrDocs