#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 33 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::GenerateTag, std::size_t size, GeneratorFunc &&generator) | |
| using utils::FixedArray< T >::const_iterator = const T* | 
Definition at line 36 of file fixed_array.hpp.
| using utils::FixedArray< T >::iterator = T* | 
Definition at line 35 of file fixed_array.hpp.
      
  | 
  explicit | 
Make an array and initialize each element with "args".
Definition at line 115 of file fixed_array.hpp.
      
  | 
  noexcept | 
Definition at line 157 of file fixed_array.hpp.
| utils::FixedArray< T >::~FixedArray | ( | ) | 
Definition at line 169 of file fixed_array.hpp.
| utils::FixedArray< T >::FixedArray | ( | impl::GenerateTag | , | 
| std::size_t | size, | ||
| GeneratorFunc && | generator ) | 
Definition at line 134 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 70 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 69 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 77 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 75 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 79 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 80 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 73 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 72 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 54 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 78 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 76 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 67 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 66 of file fixed_array.hpp.
      
  | 
  noexcept | 
Definition at line 162 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 56 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 61 of file fixed_array.hpp.
      
  | 
  inlinenoexcept | 
Definition at line 53 of file fixed_array.hpp.