D
Dylan
If I reserve some memory for a std container, let's say
std::vector<int> myInts;
myInts.reserve(100);
and then allocate another std:vector to it, like so:
std::vector<int> myOtherInts(30, 10);
myInts = myOtherInts;
Is myInts using the reserved memory or allocating a new block?
thanks
std::vector<int> myInts;
myInts.reserve(100);
and then allocate another std:vector to it, like so:
std::vector<int> myOtherInts(30, 10);
myInts = myOtherInts;
Is myInts using the reserved memory or allocating a new block?
thanks