ATLAS Offline Software
Loading...
Searching...
No Matches
ArrayHelper.h File Reference
#include <array>
#include <stddef.h>
Include dependency graph for ArrayHelper.h:

Go to the source code of this file.

Functions

template<class T, size_t N>
constexpr std::array< T, N > make_array (const T &def_val)
 Helper function to initialize in-place arrays with non-zero values.

Function Documentation

◆ make_array()

template<class T, size_t N>
std::array< T, N > make_array ( const T & def_val)
constexpr

Helper function to initialize in-place arrays with non-zero values.

Definition at line 10 of file ArrayHelper.h.

10 {
11 std::array<T,N> arr{};
12 arr.fill(def_val);
13 return arr;
14}