Originally posted by Azpegath
View Post
That means e.g. iterating by pointer is fine; but that anything that needs to be deleted/freed/[whatever]ed is needs to be owned.
[1] An exception obviously exists for code whose sole purpose is ownership (like std::unique_ptr<>) but that should rarely be part of user code.
A second exception (but only when GC is used) is anything guaranteed to (transitively) only own memory.
Leave a comment: