J
john
Hi,
If I use std::vector's reserve on a newly created vector, is the amount
of memory reserved equal to the requested amount or at least equal to
the requested amount. In other words, if I have
std::vector<int> a;
a.reserve(10);
I know that 'a' will have memory for at least 10 int's. Can I be
certain that the amount of memory is for exactly 10 int's?
Thanks,
John
If I use std::vector's reserve on a newly created vector, is the amount
of memory reserved equal to the requested amount or at least equal to
the requested amount. In other words, if I have
std::vector<int> a;
a.reserve(10);
I know that 'a' will have memory for at least 10 int's. Can I be
certain that the amount of memory is for exactly 10 int's?
Thanks,
John