so it'll be a copy.. and non POD or pointer based ones pointing to a heap will just get reassigned to this heap and memory management will be left to coder ?
POD is no longer used in the standard. There are other terms like trivially copyable and standard layout that are used. But in general the idea is correct. Types that have a valid copy constructor or a move constructor can be safely copied/moved.
Thx for keeping up with me ..
Обсуждают сегодня