mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/2057 Adds documentation to flat_hash_map, flat_hash_set, node_hash_map, and node_hash_set clarifying the moved-from contract for Swiss table containers. After a move, only destruction, assignment, and clear() are guaranteed safe. Any other operation (e.g. size(), empty(), iteration) results in undefined behavior. Fixes #1928 Merge64990acd7aintoc7269872a5Merging this change closes #2057 COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/2057 from DrishtiTripathi2230:oc/moved-from-hash-container-state64990acd7aPiperOrigin-RevId: 919140795 Change-Id: Ie755387c46907b0e5a78d4e21577173616c10f9f
23 KiB
23 KiB