Tuesday, 27 August 2013

unique_ptr or vector?

unique_ptr or vector?

If you don't need dynamic growth and don't know the size of the buffer at
compile time, when should unique_ptr<int[]> be used instead of vector<int>
if at all?
Is there a significant performance loss in using vector instead of
unique_ptr?

No comments:

Post a Comment