1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // <map>
11
12 // class map
13
14 // iterator find(const key_type& k);
15 // const_iterator find(const key_type& k) const;
16 //
17 // The member function templates find, count, lower_bound, upper_bound, and
18 // equal_range shall not participate in overload resolution unless the
19 // qualified-id Compare::is_transparent is valid and denotes a type
20
21
22 #include <map>
23 #include <cassert>
24
25 #include "test_macros.h"
26 #include "is_transparent.h"
27
28 #if TEST_STD_VER <= 11
29 #error "This test requires is C++14 (or later)"
30 #else
31
main()32 int main()
33 {
34 {
35 typedef std::map<int, double, transparent_less_private> M;
36
37 TEST_IGNORE_NODISCARD M().equal_range(C2Int{5});
38 }
39 }
40 #endif
41