std::array can be constructed (at compile time with newer C++ versions) with specific values, e.g.
std::array a{1, 4, 9};
however - it does not have a constructor, or a standard-library named constructor idiom, taking a single value and replicating it. i.e. we don't have:
std::array<int, 3> a{11};
// a == std::array<int, 3>{11, 11, 11};
How can we, therefore, construct an array given just the value to repeat?
Edit: I'm looking for a solution which would work even for element types which are not default-constructible; so, a solution going through default-constructing the array, then filling it, is not what I'm after - despite the fact that this will work for the case of int (like in the example).