For a raw pointer to an array in C++, the content of the first N elements can be seen by copying the expression into the Watch window of Visual Studio and appending a comma followed by the number of elements you want to see (for example: testArray, 10). How can the same memory content be seen in the Watch window when the array is created using a smart pointer? For example, if a unique_ptr is created via this statement:
unique_ptr<int[]> testArray = make_unique<int[]>(100)
How can we see the first 10 elements in the buffer?