BloombergLP::bslstl::StringRefImp::assign

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);
» 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...

Parameters

NameDescription
stringRefstring reference to assign from
strstring whose contents are referenced
datanull-terminated character string to reference
beginstart of the character sequence to reference
endone past the end of the character sequence
lengthnumber of characters in the sequence