Is it possible to print the name of an object?
<p>I already know that it's not possible to print the name of a variable, neither in C or in C++, this is mentioned in other StackOverflow posts.</p>

<p>However I know that in other languages, like Delphi, it is possible to print the classname of an object. I have no idea if this is possible in C++.</p>

<p>Hence my question: is it possible to print the objectname of an object?</p>

<p>Some background: I am writing a program which is using STL vectors to keep track of locations and values (both in separate vectors), and I'd like to print the content of the vectors, preceeded by the object name (so that I can see if I'm looking at locations or if I'm looking at values).</p>