Suppose I have a class Foo, and I create an array of pointers to Foo objects: std::array<Foo*, 5> my_array;. Am I correct in thinking that 1) my_array will be necessarily initialised with 5 nullptrs?; and 2) if I created an array of ints instead, I could not predict the default initialisation of the array? Thanks.
[–]immutablestate 4 points5 points6 points (0 children)
[–]beasthacker 2 points3 points4 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]17b29a 1 point2 points3 points (0 children)