cpp/string/basic string/assign

Replaces the contents of the string.

@1@ Replaces the contents with copies of character.

@2@ Replaces the contents with a copy of. Equivalent to.

@3@ Replaces the contents with a substring of. If the requested substring lasts past the end of the string, or if, the resulting substring is. If, std is thrown.

@4@ Replaces the contents with those of using move semantics. Equivalent to. In particular, allocator propagation may take place.

@5@ Replaces the contents with copies of the characters in the range. This range can contain null characters.

@6@ Replaces the contents with those of null-terminated character string pointed to by. The length of the string is determined by the first null character using.

@7@ Replaces the contents with copies of the characters in the range.

@8@ Replaces the contents with those of the initializer list.

@9@

@10@

Complexity
@1@ Linear in.

@2@ Linear in size of.

@3@ Linear in.

@4@ Constant. If is given and, then linear.

@5@ Linear in.

@6@ Linear in size of.

@7@ Linear in distance between and.

@8@ Linear in size of.

Exceptions
If the operation would result in size max_size, throws std.