absl::FixedArray::FixedArray

Creates an array initialized with the elements from the input range.

Synopsis

Declared in <absl/container/fixed_array.h>

template<
    typename Iterator,
    EnableIfInputIterator<Iterator>* = nullptr>
FixedArray(
    Iterator first,
    Iterator last,
    allocator_type const& a = allocator_type());

Description

The array's size will always be std::distance(first, last). REQUIRES: Iterator must be an input_iterator or better.

Parameters

NameDescription
firstIterator to the first element to copy.
lastIterator past the last element to copy.
aThe allocator to use.