Constructors
Synopses
Declared in <absl/container/fixed_array.h>
Creates a copy of other, copying the copy‐constructed allocator.
FixedArray(FixedArray const& other) noexcept(NoexceptCopyable());
Moves the contents of other into a new fixed array.
FixedArray(FixedArray&& other) noexcept(NoexceptMovable());
Creates an array object that can store n elements.
explicit
FixedArray(
size_type n,
allocator_type const& a = allocator_type());
Creates an array initialized with the size and contents of init_list.
FixedArray(
std::initializer_list<value_type> init_list,
allocator_type const& a = allocator_type());
Creates a copy of other using the given allocator.
FixedArray(
FixedArray const& other,
allocator_type const& a) noexcept(NoexceptCopyable());
Moves the contents of other into a new fixed array using the given allocator.
FixedArray(
FixedArray&& other,
allocator_type const& a) noexcept(NoexceptMovable());
Creates an array initialized with n copies of val.
FixedArray(
size_type n,
value_type const& val,
allocator_type const& a = allocator_type());
Creates an array initialized with the elements from the input range.
template<
typename Iterator,
EnableIfInputIterator<Iterator>* = nullptr>
FixedArray(
Iterator first,
Iterator last,
allocator_type const& a = allocator_type());
Parameters
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. |
Created with MrDocs