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 Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
13 // class Alloc = allocator<pair<const Key, T>>>
14 // class unordered_multimap
16 // size_type bucket_count() const;
18 #include <unordered_map>
22 #include "test_macros.h"
27 typedef std::unordered_multimap<int, std::string> C;
29 LIBCPP_ASSERT(c.bucket_count() == 0);
32 typedef std::unordered_multimap<int, std::string> C;
33 typedef std::pair<int, std::string> P;
45 const C c(std::begin(a), std::end(a));
46 assert(c.bucket_count() >= 8);