#include <userver/utils/fixed_array.hpp>
A fixed-size array with the size determined at runtime.
The array also allows initializing each of the array elements with the same parameters:
Definition at line 26 of file fixed_array.hpp.
Public Types | |
| using | iterator = T* |
| using | const_iterator = const T* |
Public Member Functions | |
| FixedArray ()=default | |
| Make an empty array. | |
| template<class... Args> | |
| FixedArray (std::size_t size, Args &&... args) | |
| Make an array and initialize each element with "args". | |
| FixedArray (FixedArray &&other) noexcept | |
| FixedArray & | operator= (FixedArray &&other) noexcept |
| FixedArray (const FixedArray &)=delete | |
| FixedArray & | operator= (const FixedArray &)=delete |
| std::size_t | size () const noexcept |
| bool | empty () const noexcept |
| const T & | operator[] (std::size_t i) const noexcept |
| T & | operator[] (std::size_t i) noexcept |
| T & | front () noexcept |
| const T & | front () const noexcept |
| T & | back () noexcept |
| const T & | back () const noexcept |
| T * | data () noexcept |
| const T * | data () const noexcept |
| T * | begin () noexcept |
| T * | end () noexcept |
| const T * | begin () const noexcept |
| const T * | end () const noexcept |
| const T * | cbegin () const noexcept |
| const T * | cend () const noexcept |
| template<class GeneratorFunc> | |
| FixedArray (impl::InternalTag, std::size_t size, GeneratorFunc &&generator) | |
| using utils::FixedArray< T >::const_iterator = const T* |
Definition at line 29 of file fixed_array.hpp.
| using utils::FixedArray< T >::iterator = T* |
Definition at line 28 of file fixed_array.hpp.
|
explicit |
Make an array and initialize each element with "args".
Definition at line 107 of file fixed_array.hpp.
|
noexcept |
Definition at line 147 of file fixed_array.hpp.
| utils::FixedArray< T >::~FixedArray | ( | ) |
Definition at line 158 of file fixed_array.hpp.
| utils::FixedArray< T >::FixedArray | ( | impl::InternalTag | , |
| std::size_t | size, | ||
| GeneratorFunc && | generator ) |
Definition at line 126 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 63 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 62 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 70 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 68 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 72 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 73 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 66 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 65 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 47 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 71 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 69 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 60 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 59 of file fixed_array.hpp.
|
noexcept |
Definition at line 151 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 49 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 54 of file fixed_array.hpp.
|
inlinenoexcept |
Definition at line 46 of file fixed_array.hpp.