Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GetWithDefault provides a way of checking if an index in a list
is bound, and the value if the index is bound, as one function call.
It is particularly useful in weak pointer lists and atomic lists,
where there is a race condition between checking if an element is
bound, and then reading it's value.
This removes the very recently added method
CHECKED_GET_ATOMIC_LIST
, as it is now subsumed into this general method.