'Design the presentation of own class in the variable viewer
I'm using Visual Studio and writing in C++. I have written a table (named Vector) which columns can be of any data type (any size the user wishes). In this example I filled one row with three columns. First is of type Byte (1 Byte in size), seconds is also of type Byte and the third of type Int64 (8 Bytes). I saved the numbers 1, 2 and 3. I also created a vector from the c++ standard (std::vector) and filled it with the same numbers.
As you can see, the seconds picture with the std::vector variable myStdVector shows the int-numbers sorted with [0], 1, 2. I like this class view. And I would like my own class (Vector) to have the same design respectively presentation in the variable viewer. Probably it is also possible to show the data type in the third column of the variable viewer which could be different in my Vector-class.
Does Visual Studio offer a possibility to structure the member variables or show some data in a special way?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
