1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
14 // class Alloc = allocator<pair<const Key, T>>>
15 // class unordered_multimap
17 // unordered_multimap(unordered_multimap&&)
19 // is_nothrow_move_constructible<hasher>::value &&
20 // is_nothrow_move_constructible<key_equal>::value &&
21 // is_nothrow_move_constructible<allocator_type>::value);
23 // Validate whether the operation properly guards against ADL-hijacking operator&
25 #include <unordered_map>
27 #include "test_macros.h"
28 #include "operator_hijacker.h"
31 std::unordered_multimap
<operator_hijacker
, operator_hijacker
> mo
;
32 std::unordered_multimap
<operator_hijacker
, operator_hijacker
> m(std::move(mo
));