1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8
9 // UNSUPPORTED: c++03
10
11 // <unordered_map>
12
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_map
16
17 // template <class... Args>
18 // iterator emplace_hint(const_iterator position, Args&&... args);
19
20 // Validate whether the operation properly guards against ADL-hijacking operator&
21
22 #include <unordered_map>
23
24 #include "test_macros.h"
25 #include "operator_hijacker.h"
26
test()27 void test() {
28 std::unordered_map<operator_hijacker, operator_hijacker> m;
29 m.emplace_hint(m.cbegin());
30 }
31