1f8457a07SMarshall Clow //===----------------------------------------------------------------------===//
2f8457a07SMarshall Clow //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6f8457a07SMarshall Clow //
7f8457a07SMarshall Clow //===----------------------------------------------------------------------===//
8f8457a07SMarshall Clow //
931cbe0f2SLouis Dionne // XFAIL: c++03, c++11
10f8457a07SMarshall Clow
11f8457a07SMarshall Clow // <map>
12f8457a07SMarshall Clow
13f8457a07SMarshall Clow // class map
14f8457a07SMarshall Clow
15*cd854e68SMarek Kurdej // size_type count(const key_type& k) const;
16f8457a07SMarshall Clow //
17f8457a07SMarshall Clow // The member function templates find, count, lower_bound, upper_bound, and
18f8457a07SMarshall Clow // equal_range shall not participate in overload resolution unless the
19f8457a07SMarshall Clow // qualified-id Compare::is_transparent is valid and denotes a type
20f8457a07SMarshall Clow
21f8457a07SMarshall Clow
22f8457a07SMarshall Clow #include <map>
23f8457a07SMarshall Clow #include <cassert>
24f8457a07SMarshall Clow
257fc6a556SMarshall Clow #include "test_macros.h"
26f8457a07SMarshall Clow #include "is_transparent.h"
27f8457a07SMarshall Clow
main(int,char **)282df59c50SJF Bastien int main(int, char**)
29f8457a07SMarshall Clow {
30b707e7f3SMarshall Clow {
31f8457a07SMarshall Clow typedef std::map<int, double, transparent_less> M;
3283252766SBilly Robert O'Neal III assert(M().count(C2Int{5}) == 0);
33f8457a07SMarshall Clow }
34b707e7f3SMarshall Clow {
35b707e7f3SMarshall Clow typedef std::map<int, double, transparent_less_not_referenceable> M;
3683252766SBilly Robert O'Neal III assert(M().count(C2Int{5}) == 0);
37b707e7f3SMarshall Clow }
382df59c50SJF Bastien
392df59c50SJF Bastien return 0;
40b707e7f3SMarshall Clow }
41