userver: userver/utils/fixed_array.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
fixed_array.hpp File Reference

A fixed-size array with the size determined at runtime. More...

#include <cstddef>
#include <memory>
#include <type_traits>
#include <utility>
#include <userver/utils/assert.hpp>
+ Include dependency graph for fixed_array.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  utils::FixedArray< T >
 A fixed-size array with the size determined at runtime. More...
 

Namespaces

namespace  utils
 Utilities.
 

Functions

template<class GeneratorFunc >
auto utils::GenerateFixedArray (std::size_t size, GeneratorFunc &&generator)
 Applies generator to indices in the range [0, size), storing the results in a new utils::FixedArray. The generator is guaranteed to be invoked in the first-to-last order.
 

Detailed Description

A fixed-size array with the size determined at runtime.

Definition in file fixed_array.hpp.