[#absl-InlinedVector-2constructor-0a]
= xref:absl.adoc[absl]::xref:absl/InlinedVector.adoc[InlinedVector]::InlinedVector
:relfileprefix: ../../
:mrdocs:

Creates an inlined vector by moving in the contents of `other` without allocating&period; If `other` contains allocated memory, the newly&hyphen;created inlined vector will take ownership of that memory&period; However, if `other` does not contain allocated memory, the newly&hyphen;created inlined vector will perform element&hyphen;wise move construction of the contents of `other`&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;inlined&lowbar;vector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
InlinedVector(xref:absl/InlinedVector.adoc[InlinedVector]&& other) noexcept(&sol;&ast; see-below &ast;&sol;);
----

== Description

NOTE&colon; since no allocation is performed for the inlined vector in either case, the `noexcept(&period;&period;&period;)` specification depends on whether moving the underlying objects can throw&period; It is assumed assumed that&period;&period;&period; a) move constructors should only throw due to allocation failure&period; b) if `value&lowbar;type`&apos;s move constructor allocates, it uses the same allocation function as the inlined vector&apos;s allocator&period; Thus, the move constructor is non&hyphen;throwing if the allocator is non&hyphen;throwing or `value&lowbar;type`&apos;s move constructor is specified as `noexcept`&period;

== Exception specification

This function is potentially-throwing unless `absl&colon;&colon;allocator&lowbar;is&lowbar;nothrow&lt;allocator&lowbar;type&gt;&colon;&colon;value &verbar;&verbar; std&colon;&colon;is&lowbar;nothrow&lowbar;move&lowbar;constructible&lowbar;v&lt;value&lowbar;type&gt;`.

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The inlined vector to move from&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
