[libc++] Use addressof in unordered_map.
authorMark de Wever <koraq@xs4all.nl>
Fri, 21 Jan 2022 17:00:33 +0000 (18:00 +0100)
committerMark de Wever <koraq@xs4all.nl>
Fri, 21 Jan 2022 19:43:45 +0000 (20:43 +0100)
commitd6e2c95d2252f479d5bc7a74df70f90eba94b34d
tree09d42aff6ab54d17bfcf317edbea1eef875f28f9
parent48132bb1e437f213e7a183a6a69e7589abe33af6
[libc++] Use addressof in unordered_map.

This addresses the usage of `operator&` in `<unordered_map>`.

(Note there are still more headers with the same issue.)

Reviewed By: #libc, Quuxplusone, ldionne

Differential Revision: https://reviews.llvm.org/D117393
17 files changed:
libcxx/include/__hash_table
libcxx/include/unordered_map
libcxx/test/std/containers/unord/unord.map/iterator.operators.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/assign_move.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/move_alloc.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/emplace_hint.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/erase_const_iter.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/erase_range.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/insert_hint_const_lvalue.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/insert_rvalue_constructible_value_type.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/insert_rvalue_value_type.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/try_emplace_hint.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.map/unord.map.swap/swap.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_alloc.addressof.compile.pass.cpp [new file with mode: 0644]
libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/emplace_hint.addressof.compile.pass.cpp [new file with mode: 0644]