Date: Wed, 22 Jan 2025 08:16:01 -0800
Hi all,
I'm Rylex Phan, really new to this community, please correct me if I'm
wrong!
I was wondering what we can do to moved STL containers. I was searching for
an answer and stumbled across this <https://stackoverflow.com/a/7028318>
Stackoverflow answer by Howard Hinnant.
I was surprised to see that there was nothing in the standard that
specified what operation can be performed after a move. For example,
assignment and destruction are obvious, but what about something like
resize(), reserve()? Shouldn't we have some clearly defined behavior?
Thank you very much!
I'm Rylex Phan, really new to this community, please correct me if I'm
wrong!
I was wondering what we can do to moved STL containers. I was searching for
an answer and stumbled across this <https://stackoverflow.com/a/7028318>
Stackoverflow answer by Howard Hinnant.
I was surprised to see that there was nothing in the standard that
specified what operation can be performed after a move. For example,
assignment and destruction are obvious, but what about something like
resize(), reserve()? Shouldn't we have some clearly defined behavior?
Thank you very much!
Received on 2025-01-22 16:16:13