Elliott
Elliott

Reputation: 1437

Vector of a Fixed size array

I have had a look around for different sources and was unable to find any useful information on vectors of fixed size arrays. I was wondering if the below code would work properly.

std::vector<std::array<myType, [3]> > myVectorOfArrays;

Upvotes: 0

Views: 1580

Answers (1)

Tsar Ioann
Tsar Ioann

Reputation: 444

Try: std::vector<std::array<myType, 3> > myVectorOfArrays;

Upvotes: 5

Related Questions