userver: userver/utils/fixed_array.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
fixed_array.hpp File Reference

Detailed Description

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

Definition in file fixed_array.hpp.

Go to the source code of this file.

#include <cstddef>
#include <memory>
#include <type_traits>
#include <utility>
#include <userver/utils/assert.hpp>
#include <userver/utils/impl/internal_tag.hpp>
+ This graph shows which files directly or indirectly include 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.