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_set
16 // size_type bucket_count() const;
18 #include <unordered_set>
21 #include "min_allocator.h"
26 typedef std::unordered_set<int> C;
27 typedef C::const_iterator I;
30 assert(c.bucket_count() == 0);
33 typedef std::unordered_set<int> C;
34 typedef C::const_iterator I;
47 const C c(std::begin(a), std::end(a));
48 assert(c.bucket_count() >= 11);
50 #if TEST_STD_VER >= 11
52 typedef std::unordered_set<int, std::hash<int>, std::equal_to<int>, min_allocator<int>> C;
53 typedef C::const_iterator I;
56 assert(c.bucket_count() == 0);
59 typedef std::unordered_set<int, std::hash<int>, std::equal_to<int>, min_allocator<int>> C;
60 typedef C::const_iterator I;
73 const C c(std::begin(a), std::end(a));
74 assert(c.bucket_count() >= 11);