is there a ubound function in C++?

I came up with this, but it would only work with arrays with only one diminsional arrays. how would I find the upper bound of another dimnsion.

#define UBOUND(array) (sizeof(array)/sizeof(array[0]))

are there any other array functions in C++ that are good