1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
13 // size_type count(const key_type& k) const;
18 #include "test_macros.h"
19 #include "min_allocator.h"
20 #include "private_constructor.h"
26 typedef std::multiset
<int> M
;
28 typedef M::size_type R
;
41 const M
m(ar
, ar
+sizeof(ar
)/sizeof(ar
[0]));
58 #if TEST_STD_VER >= 11
61 typedef std::multiset
<int, std::less
<int>, min_allocator
<int>> M
;
63 typedef M::size_type R
;
76 const M
m(ar
, ar
+sizeof(ar
)/sizeof(ar
[0]));
97 typedef std::multiset
<int, std::less
<>> M
;
98 typedef M::size_type R
;
111 const M
m(ar
, ar
+sizeof(ar
)/sizeof(ar
[0]));
129 typedef PrivateConstructor V
;
130 typedef std::multiset
<V
, std::less
<>> M
;
131 typedef M::size_type R
;
134 m
.insert ( V::make ( 5 ));
135 m
.insert ( V::make ( 5 ));
136 m
.insert ( V::make ( 5 ));
137 m
.insert ( V::make ( 5 ));
138 m
.insert ( V::make ( 7 ));
139 m
.insert ( V::make ( 7 ));
140 m
.insert ( V::make ( 7 ));
141 m
.insert ( V::make ( 9 ));
142 m
.insert ( V::make ( 9 ));