When delivering a std::vector in a function, how much data is duplicated, and how much of an optimization will it be to place the std::vector in free-store (on the heap) and provide a pointer instead, i.e. is:
std::vector *f()
{
std::vector *result = new ...READ MORE
Aug 11, 2022
in C++
by
Nicholas
• 7,760 points
•
1,052 views