absl::InlinedVector::assign

assign overloads

Synopses

Declared in <absl/container/inlined_vector.h>

Overload of InlinedVector::assign(...) that replaces the contents of the inlined vector with copies of the elements of list.

void
assign(std::initializer_list<value_type> list);
» more...

Replaces the contents of the inlined vector with n copies of v.

void
assign(
    size_type n,
    const_reference v);
» more...

Overload of InlinedVector::assign(...) to replace the contents of the inlined vector with the range [first, last).]

template<
    typename ForwardIterator,
    EnableIfAtLeastForwardIterator<ForwardIterator> = 0>
void
assign(
    ForwardIterator first,
    ForwardIterator last);
» more...

Overload of InlinedVector::assign(...) to replace the contents of the inlined vector with the range [first, last).]

template<
    typename InputIterator,
    DisableIfAtLeastForwardIterator<InputIterator> = 0>
void
assign(
    InputIterator first,
    InputIterator last);
» more...

Overload of InlinedVector::assign(...) to replace the contents of the inlined vector with the range [first, last).]

template<
    typename InputIterator,
    DisableIfAtLeastForwardIterator<InputIterator> = 0>
void
assign(
    InputIterator first,
    InputIterator last);
» more...

Parameters

NameDescription
listThe initializer list to copy elements from.
nThe number of copies to assign.
vThe value to copy into each element.
firstAn iterator to the beginning of the range.
lastAn iterator past the end of the range.