I am looking for a simple method to assign a multi-dimensional array with the same value? For example
using namespace std;
array<array<array<int, 2>, 3>, 4> a;
and want all elements of a[:][:][:]
to be 10. I don't want use 3 loops. One loop is fine.
Aucun commentaire:
Enregistrer un commentaire