A
Alan
I have some questions about the STL template "vector":
- Do I need to do anything (e.g., "delete") to free memory when I`m
done with a vector? I just declare it, and I know it allocates memory
as needed. Just not sure about it releasing memory.
- Does the STL algorithm "sort" work on vectors of complex objects?
(The simplistic examples I found only sort integers, not objects with
lots of attributes.) If so, on what does it sort? (each attribute in
order?)
I have searched the web but have been unable to find this information.
Thanks, Alan
- Do I need to do anything (e.g., "delete") to free memory when I`m
done with a vector? I just declare it, and I know it allocates memory
as needed. Just not sure about it releasing memory.
- Does the STL algorithm "sort" work on vectors of complex objects?
(The simplistic examples I found only sort integers, not objects with
lots of attributes.) If so, on what does it sort? (each attribute in
order?)
I have searched the web but have been unable to find this information.
Thanks, Alan