Why doesn't C++ support range based for loop for dynamic arrays? – stackoverflow.com

Why doesn't C++ support range based for loop over dynamic arrays? That is, something like this: int* array = new int[len]; for[] (int i : array) {}; I just invented the for[] statement to rhyme ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why doesn't C++ support range based for loop for dynamic arrays? – stackoverflow.com"