[#absl-FixedArray-2constructor-08b] = xref:absl.adoc[absl]::xref:absl/FixedArray.adoc[FixedArray]::FixedArray :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<absl/container/fixed_array.h>` Creates a copy of `other`, copying the copy‐constructed allocator. [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..._]# Moves the contents of `other` into a new fixed array. [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..._]# Creates an array object that can store `n` elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/FixedArray/2constructor-0ca.adoc[FixedArray]( xref:absl/FixedArray/size_type.adoc[size_type] n, xref:absl/FixedArray/allocator_type.adoc[allocator_type] const& a = allocator_type()); ---- [.small]#xref:absl/FixedArray/2constructor-0ca.adoc[_» more..._]# Creates an array initialized with the size and contents of `init_list`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/FixedArray/2constructor-083.adoc[FixedArray]( std::initializer_list<value_type> init_list, xref:absl/FixedArray/allocator_type.adoc[allocator_type] const& a = allocator_type()); ---- [.small]#xref:absl/FixedArray/2constructor-083.adoc[_» more..._]# Creates a copy of `other` using the given allocator. [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_type] const& a) noexcept(NoexceptCopyable()); ---- [.small]#xref:absl/FixedArray/2constructor-02.adoc[_» more..._]# Moves the contents of `other` into a new fixed array using the given allocator. [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_type] const& a) noexcept(NoexceptMovable()); ---- [.small]#xref:absl/FixedArray/2constructor-03.adoc[_» more..._]# Creates an array initialized with `n` copies of `val`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/FixedArray/2constructor-00.adoc[FixedArray]( xref:absl/FixedArray/size_type.adoc[size_type] n, xref:absl/FixedArray/value_type.adoc[value_type] const& val, xref:absl/FixedArray/allocator_type.adoc[allocator_type] const& a = allocator_type()); ---- [.small]#xref:absl/FixedArray/2constructor-00.adoc[_» more..._]# Creates an array initialized with the elements from the input range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Iterator, xref:absl/FixedArray.adoc[EnableIfInputIterator<Iterator>]* = nullptr> xref:absl/FixedArray/2constructor-0d.adoc[FixedArray]( Iterator first, Iterator last, xref:absl/FixedArray/allocator_type.adoc[allocator_type] const& a = allocator_type()); ---- [.small]#xref:absl/FixedArray/2constructor-0d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The fixed array to copy from. | *n* | The number of elements to store. | *a* | The allocator to use. | *init_list* | The initializer list of elements to copy. | *val* | The value to copy into every element. | *first* | Iterator to the first element to copy. | *last* | Iterator past the last element to copy. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#