]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/std/containers/associative/multimap/multimap.ops/count0.pass.cpp
Vendor import of libc++ trunk r305575:
[FreeBSD/FreeBSD.git] / test / std / containers / associative / multimap / multimap.ops / count0.pass.cpp
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 // XFAIL: c++98, c++03, c++11
11
12 // <map>
13
14 // class multimap
15
16 //       iterator find(const key_type& k);
17 // const_iterator find(const key_type& k) const;
18 //
19 //   The member function templates find, count, lower_bound, upper_bound, and
20 // equal_range shall not participate in overload resolution unless the
21 // qualified-id Compare::is_transparent is valid and denotes a type
22
23
24 #include <map>
25 #include <cassert>
26
27 #include "is_transparent.h"
28
29 int main()
30 {
31     {
32     typedef std::multimap<int, double, transparent_less> M;
33     M().count(C2Int{5});
34     }
35     {
36     typedef std::multimap<int, double, transparent_less_not_referenceable> M;
37     M().count(C2Int{5});
38     }
39 }