You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say i would like to keep a reference(iterator or pointer) to a element in somewhere,when i use it later, how would i know where it's still valid or invalid (like erased and then insert in same place?)
The text was updated successfully, but these errors were encountered:
Use get_iterator if it's a pointer, use is_active if it's an iterator. This will only tell you if an element exists in that location, not if it's the same element. Use a unique id within the element if you want to guarantee that it's the same element. If you like you can create a wrapper around an iterator which stores the id and compares.
Please send questions over email, the issues format is only really for issues with the implementation, not for Q&A.
Thanks
Say i would like to keep a reference(iterator or pointer) to a element in somewhere,when i use it later, how would i know where it's still valid or invalid (like erased and then insert in same place?)
The text was updated successfully, but these errors were encountered: