Builds a std::array by invoking make for each index in the sequence.

Synopsis

Declared in <folly/container/Array.h>

template<
    typename MakeItem,
    std::size_t Index...>
constexpr
auto
make_array_with_(
    MakeItem const& make,
    std::index_sequence<Index...> seq);

Return Value

A std::array whose i‐th element is make(i).

Parameters

Name

Description

make

The generator invoked as make(i) for each index.

seq

The index sequence enumerating the array positions.

Created with MrDocs