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 //===----------------------------------------------------------------------===//
12 // template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
13 // class Alloc = allocator<Value>>
14 // class unordered_multiset
16 // size_type bucket_count() const;
18 #include <unordered_set>
21 #include "test_macros.h"
22 #include "min_allocator.h"
27 typedef std::unordered_multiset<int> C;
29 LIBCPP_ASSERT(c.bucket_count() == 0);
32 typedef std::unordered_multiset<int> C;
45 const C c(std::begin(a), std::end(a));
46 assert(c.bucket_count() >= 8);
48 #if TEST_STD_VER >= 11
50 typedef std::unordered_multiset<int, std::hash<int>,
51 std::equal_to<int>, min_allocator<int>> C;
53 LIBCPP_ASSERT(c.bucket_count() == 0);
56 typedef std::unordered_multiset<int, std::hash<int>,
57 std::equal_to<int>, min_allocator<int>> C;
70 const C c(std::begin(a), std::end(a));
71 assert(c.bucket_count() >= 8);