how to delete all elements of a std::tr1::array?
For example I have defined the following array.
std::tr1::array <int, 5> a = { 1, 2, 3, 4, 5}
Just like in vectors I am looking for a method such as a.clear() or a.erase() but couldn’t find one for arrays.
Thank you
arrays are static size, you can neither add nor remove elements, that’s what vector is for.