I would like to know if it is safe to do something like the following:
int* arrPtr = &(*arr.begin());
I know that it is a valid thing to do if arr is not empty. I am not so sure about the case when arr is empty.
Any help would be greatly appreciated.