J
Jayden Shui
Hi All,
As I know, it is not safe to reference the elements in a std::vector
by pointers, since their address may change such as with the expansion
of vector.
My questions is that: how about std::set, map, and list? Are they safe
or not by referencing their elements?
Thanks a lot!
Jayden
As I know, it is not safe to reference the elements in a std::vector
by pointers, since their address may change such as with the expansion
of vector.
My questions is that: how about std::set, map, and list? Are they safe
or not by referencing their elements?
Thanks a lot!
Jayden