[mlir][acc] Introduce MappableType interface (#122146)
[llvm-project.git] / libcxx / test / std / containers / unord / unord.set / max_bucket_count.pass.cpp
blobc830f444bbaee17e6212791afcecabd19c8dbed0
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // <unordered_set>
11 // template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
12 // class Alloc = allocator<Value>>
13 // class unordered_set
15 // size_type max_bucket_count() const;
17 #include <unordered_set>
18 #include <cassert>
20 #include "test_macros.h"
21 #include "min_allocator.h"
23 int main(int, char**)
26 typedef std::unordered_set<int> C;
27 const C c;
28 assert(c.max_bucket_count() > 0);
30 #if TEST_STD_VER >= 11
32 typedef std::unordered_set<int, std::hash<int>,
33 std::equal_to<int>, min_allocator<int>> C;
34 const C c;
35 assert(c.max_bucket_count() > 0);
37 #endif
39 return 0;