absl::InlinedVector::InlinedVector

Creates an inlined vector by moving in the contents of other with a copy of allocator.

Synopsis

Declared in <absl/container/inlined_vector.h>

InlinedVector(
    InlinedVector&& other,
    allocator_type const& allocator) noexcept(/* see-below */);

Description

NOTE: if other's allocator is not equal to allocator, even if other contains allocated memory, this move constructor will still allocate. Since allocation is performed, this constructor can only be noexcept if the specified allocator is also noexcept.

Exception specification

This function is potentially-throwing unless absl::allocator_is_nothrow<allocator_type>::value.

Parameters

NameDescription
otherThe inlined vector to move from.
allocatorThe allocator to use.