We can initialize, say, std::array<char, 3>
with = { ' ', ' ', ' ' }
but what if the size is given by a template parameter N
? Can't we do something like std::string::string(size_type count, CharT ch)
which fills the instance with the given ch
?
Should I perhaps look at std::integer_sequence
?