Lines Matching refs:cont
37 inline void CheckNoAllocations(Container &cont){ in CheckNoAllocations() argument
38 CheckContainerAllocator(cont, 0, 0, false); in CheckNoAllocations()
50 T cont; in test_unordered_methods() local
51 cont.insert(Value<T>::make(1)); in test_unordered_methods()
52 cont.insert(Value<T>::make(2)); in test_unordered_methods()
55 cont.rehash(16); in test_unordered_methods()
59 REQUIRE_MESSAGE(cont.load_factor() <= cont.max_load_factor(), "Load factor is invalid"); in test_unordered_methods()
62 cont.max_load_factor(16.0f); in test_unordered_methods()
63 … REQUIRE_MESSAGE(cont.max_load_factor() == 16.0f, "Max load factor has not been changed properly"); in test_unordered_methods()
66 cont.hash_function(); in test_unordered_methods()
69 cont.key_eq(); in test_unordered_methods()
71 cont.clear(); in test_unordered_methods()
72 CheckNoAllocations(cont); in test_unordered_methods()
75 std::pair<typename T::iterator, bool> ins3 = cont.insert(Value<T>::make(i)); in test_unordered_methods()
78 REQUIRE_MESSAGE(cont.size() == 256, "Wrong number of elements have been inserted"); in test_unordered_methods()
80 REQUIRE_MESSAGE(cont.unsafe_bucket_count() == 16, "Wrong number of buckets"); in test_unordered_methods()
87 typename T::size_type buck = cont.unsafe_bucket(i); in test_unordered_methods()
98 bucketSizeSum += cont.unsafe_bucket_size(i); in test_unordered_methods()
99 …for (typename T::iterator bit = cont.unsafe_begin(i); bit != cont.unsafe_end(i); bit++) iteratorSi… in test_unordered_methods()