to_array
is good when you want to force a specific element type, but causes the elements to be moved from a temporary array. So if you don't need to manually set the element type, prefer std::array{...}
.
to_array
is good when you want to force a specific element type, but causes the elements to be moved from a temporary array. So if you don't need to manually set the element type, prefer std::array{...}
.