Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I'm not asking how it's passed into functions, I'm asking where it comes from, and where its contents is stored. Commented Aug 29, 2014 at 0:11
  • The variable that refers to the object is "this." In your example, vec holds the address of this. When you call resize, the value of vec is passed as the first parameter. The answer given here is both correct and relevant. Commented Aug 29, 2014 at 0:52
  • @dave yes but my question was about where the contents of this is stored, not where the instance to which the memory address referred to by this is stored. Commented Aug 29, 2014 at 0:57