1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 // size_type count(const key_type& k) const;
19 #include "min_allocator.h"
20 #include "private_constructor.hpp"
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 __cplusplus >= 201103L
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]));
94 #if _LIBCPP_STD_VER > 11
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 ));