bsl::deque::assign

Assign numElements copies of value to this deque.

Synopsis

Declared in <bslstl_deque.h>

void
assign(
    size_type numElements,
    VALUE_TYPE const& value);

Description

Assign to this object the value resulting from first clearing this deque and then appending the specified numElements having the specified value. This method requires that the (template parameter) VALUE_TYPE be copy-assignable and copy-insertable into this deque (see {Requirements on VALUE_TYPE}).

Parameters

NameDescription
numElementsnumber of elements to assign
valuevalue to copy-assign into each element