bsl::deque::operator=

Assign the elements of values to this deque.

Synopsis

Declared in <bslstl_deque.h>

deque<VALUE_TYPE, ALLOCATOR>&
operator=(std::initializer_list<value_type> values);

Description

Assign to this object the value resulting from first clearing this deque and then appending each value_type object in the specified values initializer list; return a reference providing modifiable access to this object. This method requires that the (template parameter) VALUE_TYPE be copy-insertable into this deque (see {Requirements on VALUE_TYPE}).

Return Value

modifiable reference to this deque

Parameters

NameDescription
valuesinitializer list of elements to assign