Unless you specially make use of a garbage collector, there is no garbage collection involved. In your latter example, tok is a variable of object type, not of reference type*, so there is no notion...
Type: Posts; User: laserlight
Unless you specially make use of a garbage collector, there is no garbage collection involved. In your latter example, tok is a variable of object type, not of reference type*, so there is no notion...
When the vector is destroyed, the token objects it stored will be destroyed.