2 ms·
Returning them by value is fine. *RVO avoids inefficiencies. But it would often be better to make a move-only value type, and return that instead.
by ncmncm 7y ago
Returning them by value is fine. *RVO avoids inefficiencies.
But it would often be better to make a move-only value type, and return that instead.