• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 multimap
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     typedef std::multimap<int, double, transparent_less_no_type> M;
35 
36     M().count(C2Int{5});
37 }
38 #endif
39