I would like to understand how the constructor initialization list works with array members.
Assume:
class Type { public: Type() : data{} {} private: uint8_t data[1024]; };
Do I understand correctly that Type() : data{}
initializes all the elements of the data
array to zero?
If so, is it possible to initialize all the elements of an array member with nonzero (identical) values in the constructor initialization list?
Option:
Type() : data{7} {}
Causes only the first element of the array member to be initialized.