get_size()

I'm new to C++, and I'm studying the dinamically allocating arrays. I've found the following example in the C++ primer:

size_t n = get_size();
int *p = new int[n];
for (int *q=p; q!=p+n); ++q)
/* process the array */


get_size() is a function that is recurrent through the manual, but it isn't explained anywhere. Is get_size() a function that I must define myself? If it is the case, why in the example the function takes no arguments?

Thank you.
Pino
That example from the book is a hypothectical sample.
It is to be used for illustrative purposes only.
OK, now it's clear. Thank you for help.
Topic archived. No new replies allowed.