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 //===----------------------------------------------------------------------===//
11 // template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
12 // class Alloc = allocator<Value>>
13 // class unordered_multiset
15 // size_type bucket_count() const;
17 #include <unordered_set>
20 #include "test_macros.h"
21 #include "min_allocator.h"
26 typedef std::unordered_multiset
<int> C
;
28 LIBCPP_ASSERT(c
.bucket_count() == 0);
31 typedef std::unordered_multiset
<int> C
;
44 const C
c(std::begin(a
), std::end(a
));
45 assert(c
.bucket_count() >= 8);
47 #if TEST_STD_VER >= 11
49 typedef std::unordered_multiset
<int, std::hash
<int>,
50 std::equal_to
<int>, min_allocator
<int>> C
;
52 LIBCPP_ASSERT(c
.bucket_count() == 0);
55 typedef std::unordered_multiset
<int, std::hash
<int>,
56 std::equal_to
<int>, min_allocator
<int>> C
;
69 const C
c(std::begin(a
), std::end(a
));
70 assert(c
.bucket_count() >= 8);