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
I couldn't find any documentation as to which methods, if any, are safe to call on a moved-from flat_hash_map.
I assume Abseil follows the STL convention that "moved-from objects shall be placed in a valid but unspecified state".
Does it mean that, at a minimum, clear() on such a container is safe to call and will work as expected (resulting in an empty container)? Or perhaps it's only safe to call operator=(/* empty map */T{})?
Empirically, it seems that calling size() is not safe, at least in ASAN'd code: