pointer and timestamps

does a pointer keep track of time stamps when it is created?
i am trying to use it to create a table that can store the access count and the temporal locality at the same time. i am completely new to pointers.
no, you need to store the time stamp within the data pointed to
If you're new to pointers, then it might be helpful to remember that a pointer is just a number. It's a single, integer number, that identifies an address in memory.
what about using vector of pointers and what does vector of pointers means....
well, vector is most likely this:

http://www.cplusplus.com/reference/vector/vector/?kw=vector

(it's a dynamic array)

and "vector of pointers" means that the vector uses pointer as it's data
"Pointer" is not the answer, "class" is. Class encapsulates some data and provides an interface to access that data. The interface can keep record of access; if you can modify the data only via a member function of the class, then that function can update counters every time it is called.

(The class can be separate from the actual data, a "smart pointer" type.)
Topic archived. No new replies allowed.