[#absl-FixedArray-2constructor-08b]
= xref:absl.adoc[absl]::xref:absl/FixedArray.adoc[FixedArray]::FixedArray
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;absl&sol;container&sol;fixed&lowbar;array&period;h&gt;`

Creates a copy of `other`, copying the copy&hyphen;constructed allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/FixedArray/2constructor-0c8.adoc[FixedArray](xref:absl/FixedArray.adoc[FixedArray] const& other) noexcept(NoexceptCopyable());
----

[.small]#xref:absl/FixedArray/2constructor-0c8.adoc[_» more&period;&period;&period;_]#

Moves the contents of `other` into a new fixed array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/FixedArray/2constructor-0e.adoc[FixedArray](xref:absl/FixedArray.adoc[FixedArray]&& other) noexcept(NoexceptMovable());
----

[.small]#xref:absl/FixedArray/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Creates an array object that can store `n` elements&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/FixedArray/2constructor-0ca.adoc[FixedArray](
    xref:absl/FixedArray/size_type.adoc[size&lowbar;type] n,
    xref:absl/FixedArray/allocator_type.adoc[allocator&lowbar;type] const& a = allocator&lowbar;type());
----

[.small]#xref:absl/FixedArray/2constructor-0ca.adoc[_» more&period;&period;&period;_]#

Creates an array initialized with the size and contents of `init&lowbar;list`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/FixedArray/2constructor-083.adoc[FixedArray](
    std::initializer&lowbar;list&lt;value&lowbar;type&gt; init&lowbar;list,
    xref:absl/FixedArray/allocator_type.adoc[allocator&lowbar;type] const& a = allocator&lowbar;type());
----

[.small]#xref:absl/FixedArray/2constructor-083.adoc[_» more&period;&period;&period;_]#

Creates a copy of `other` using the given allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/FixedArray/2constructor-02.adoc[FixedArray](
    xref:absl/FixedArray.adoc[FixedArray] const& other,
    xref:absl/FixedArray/allocator_type.adoc[allocator&lowbar;type] const& a) noexcept(NoexceptCopyable());
----

[.small]#xref:absl/FixedArray/2constructor-02.adoc[_» more&period;&period;&period;_]#

Moves the contents of `other` into a new fixed array using the given allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/FixedArray/2constructor-03.adoc[FixedArray](
    xref:absl/FixedArray.adoc[FixedArray]&& other,
    xref:absl/FixedArray/allocator_type.adoc[allocator&lowbar;type] const& a) noexcept(NoexceptMovable());
----

[.small]#xref:absl/FixedArray/2constructor-03.adoc[_» more&period;&period;&period;_]#

Creates an array initialized with `n` copies of `val`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/FixedArray/2constructor-00.adoc[FixedArray](
    xref:absl/FixedArray/size_type.adoc[size&lowbar;type] n,
    xref:absl/FixedArray/value_type.adoc[value&lowbar;type] const& val,
    xref:absl/FixedArray/allocator_type.adoc[allocator&lowbar;type] const& a = allocator&lowbar;type());
----

[.small]#xref:absl/FixedArray/2constructor-00.adoc[_» more&period;&period;&period;_]#

Creates an array initialized with the elements from the input range&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Iterator,
    xref:absl/FixedArray.adoc[EnableIfInputIterator&lt;Iterator&gt;]* = nullptr&gt;
xref:absl/FixedArray/2constructor-0d.adoc[FixedArray](
    Iterator first,
    Iterator last,
    xref:absl/FixedArray/allocator_type.adoc[allocator&lowbar;type] const& a = allocator&lowbar;type());
----

[.small]#xref:absl/FixedArray/2constructor-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The fixed array to copy from&period;
| *n*
| The number of elements to store&period;
| *a*
| The allocator to use&period;
| *init&lowbar;list*
| The initializer list of elements to copy&period;
| *val*
| The value to copy into every element&period;
| *first*
| Iterator to the first element to copy&period;
| *last*
| Iterator past the last element to copy&period;
|===


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