My question is pretty straightforward, but to be more specific I want to quote 2 lines from Stroustrup11.
T[N]
A fixed-size built-in array: N contiguous elements of type T; nosize()
or other member functionsarray<T,N>
A fixed-size array of N contiguous elements of type T; like the built-in array, but with most problems solved
So what is the difference the author is mentioning? And what problems are solved for std::array<T,N>
?
Aucun commentaire:
Enregistrer un commentaire