3 ms·
You can still write the former and it's just fine.
by mattnewport 9y ago
You can still write the former and it's just fine.
- jstimpfle 9y agoExcept, I need to think the latter?
- mattnewport 9y agoNot for a Plain Old Data (POD) type. You need to think about the latter if you're manually managing memory or OS resources in your class (which should be rare) or you're trying to optimize performance when you have members that can be moved more cheaply than copied (usually because they manage memory) which should also usually be rare and the result of identifying a performance issue through profiling.