A multi_array view has many of the same methods as a multi_array. Do they have a common base that I can use by reference?
void count(Type a) {
// ^^^^ what should I use here?
cout << a.num_elements() << endl;
}
int main() {
boost::multi_array<int, 2> a;
count(a);
count(a[indices[index_range()][index_range()]]);
}