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::set<int> M;
27 typedef M::size_type R;
39 const M m(ar, ar+sizeof(ar)/sizeof(ar[0]));
59 #if __cplusplus >= 201103L
62 typedef std::set<int, std::less<int>, min_allocator<int>> M;
63 typedef M::size_type R;
75 const M m(ar, ar+sizeof(ar)/sizeof(ar[0]));
96 #if _LIBCPP_STD_VER > 11
99 typedef std::set<int, std::less<>> M;
100 typedef M::size_type R;
112 const M m(ar, ar+sizeof(ar)/sizeof(ar[0]));
133 typedef PrivateConstructor V;
134 typedef std::set<V, std::less<>> M;
135 typedef M::size_type R;
138 m.insert ( V::make ( 5 ));
139 m.insert ( V::make ( 6 ));
140 m.insert ( V::make ( 7 ));
141 m.insert ( V::make ( 8 ));
142 m.insert ( V::make ( 9 ));
143 m.insert ( V::make ( 10 ));
144 m.insert ( V::make ( 11 ));
145 m.insert ( V::make ( 12 ));