Template:cpp/container/assign

Replaces the contents of the container.

@1@ Replaces the contents with copies of value

@2@ Replaces the contents with copies of those in the range. The behavior is undefined if either argument is an iterator into.

@3@ Replaces the contents with the elements from the initializer list.

All iterators, pointers and references to the elements of the container are invalidated.

Complexity
@1@ Linear in

@2@ Linear in distance between and

@3@ Linear in

Example
{{#switch: {{{1}}}
 * list=

Defect reports
}}