absl::FixedArray::FixedArray

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());
» more...

Moves the contents of other into a new fixed array.

FixedArray(FixedArray&& other) noexcept(NoexceptMovable());
» more...

Creates an array object that can store n elements.

explicit
FixedArray(
    size_type n,
    allocator_type const& a = allocator_type());
» more...

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());
» more...

Creates a copy of other using the given allocator.

FixedArray(
    FixedArray const& other,
    allocator_type const& a) noexcept(NoexceptCopyable());
» more...

Moves the contents of other into a new fixed array using the given allocator.

FixedArray(
    FixedArray&& other,
    allocator_type const& a) noexcept(NoexceptMovable());
» more...

Creates an array initialized with n copies of val.

FixedArray(
    size_type n,
    value_type const& val,
    allocator_type const& a = allocator_type());
» more...

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());
» more...

Parameters

NameDescription
otherThe fixed array to copy from.
nThe number of elements to store.
aThe allocator to use.
init_listThe initializer list of elements to copy.
valThe value to copy into every element.
firstIterator to the first element to copy.
lastIterator past the last element to copy.