Constructors
Declared in <absl/container/inlined_vector.h>
Creates an empty inlined vector with a value-initialized allocator.
InlinedVector() noexcept(noexcept(allocator_type()));
» more...
Creates an inlined vector by copying the contents of other using other's allocator.
InlinedVector(InlinedVector const& other);
» more...
Creates an inlined vector by moving in the contents of other without allocating. If other contains allocated memory, the newly-created inlined vector will take ownership of that memory. However, if other does not contain allocated memory, the newly-created inlined vector will perform element-wise move construction of the contents of other.
InlinedVector(InlinedVector&& other) noexcept(/* see-below */);
» more...
Creates an empty inlined vector with a copy of allocator.
explicit
InlinedVector(allocator_type const& allocator) noexcept;
» more...
Creates an inlined vector with n copies of value_type().
explicit
InlinedVector(
size_type n,
allocator_type const& allocator = allocator_type());
» more...
Creates an inlined vector with copies of the elements of list.
InlinedVector(
std::initializer_list<value_type> list,
allocator_type const& allocator = allocator_type());
» more...
Creates an inlined vector by copying the contents of other using the provided allocator.
InlinedVector(
InlinedVector const& other,
allocator_type const& allocator);
» more...
Creates an inlined vector by moving in the contents of other with a copy of allocator.
InlinedVector(
InlinedVector&& other,
allocator_type const& allocator) noexcept(/* see-below */);
» more...
Creates an inlined vector with n copies of v.
InlinedVector(
size_type n,
const_reference v,
allocator_type const& allocator = allocator_type());
» more...
Creates an inlined vector with elements constructed from the provided forward iterator range [first, last).]
template<
typename ForwardIterator,
EnableIfAtLeastForwardIterator<ForwardIterator> = 0>
InlinedVector(
ForwardIterator first,
ForwardIterator last,
allocator_type const& allocator = allocator_type());
» more...
Creates an inlined vector with elements constructed from the provided input iterator range [first, last).]
template<
typename InputIterator,
DisableIfAtLeastForwardIterator<InputIterator> = 0>
InlinedVector(
InputIterator first,
InputIterator last,
allocator_type const& allocator = allocator_type());
» more...
Creates an inlined vector with elements constructed from the provided input iterator range [first, last).]
template<
typename InputIterator,
DisableIfAtLeastForwardIterator<InputIterator> = 0>
InlinedVector(
InputIterator first,
InputIterator last,
allocator_type const& allocator = allocator_type());
» more...
| Name | Description |
|---|---|
| other | The inlined vector to copy. |
| allocator | The allocator to copy. |
| n | The number of elements to create. |
| list | The initializer list to copy elements from. |
| v | The value to copy into each element. |
| first | An iterator to the beginning of the range. |
| last | An iterator past the end of the range. |