Say I\'ve got an N-dimensional boost::multi_array (of type int for simplicity), where N is known at compile time but can vary (i.e. is a non-type template param
N
If you don't need the index, you can simply do:
for (unsigned int i = 0; i < A.num_elements(); i++ ) { tValue item = A.data()[i]; std::cout << item << std::endl; }