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
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
/// Enumerate all elements in the map in lexicographical order of the encoded key. If you
/// alter the map while doing this, you'll get undefined results.
The undefined results wording is very uncomfortable to me as someone with C++ background. There are no undefined behaviour here. There maybe unexpected result depends on the how the map is altered. Deleting item is perfectly fine, update value is also ok. Only add item means it may or may not be iterated later depends on the hash value of the key. Can we update the docs to make it more clear?
The undefined results wording is very uncomfortable to me as someone with C++ background. There are no undefined behaviour here. There maybe unexpected result depends on the how the map is altered. Deleting item is perfectly fine, update value is also ok. Only add item means it may or may not be iterated later depends on the hash value of the key. Can we update the docs to make it more clear?
substrate/frame/support/src/storage/mod.rs
Lines 326 to 351 in ee8ac3a