The suggested duplicates do not directly answer this particular question. One of them just addresses the contiguity of the elements of vector without talking about array while the other discusses the use of array instead of float[N] without talking about contiguitiness (is that a word?).
Does a vector<std::array<float,10>>
of size()
=5 result in 50 contiguous floats in memory, such that a pointer to the vector[0]
element points to the start of this stretch of memory?