Lines Matching refs:value
78 test_insert_by_key( Table &c, const value_type &value ) : my_c(c), my_value(value) {} in test_insert_by_key() argument
129 void operator()(const typename Table::value_type &value ) { in operator ()() argument
131 CHECK(my_c.count( value.first ) == 1); in operator ()()
135 CHECK(my_c.find( ca, value.first )); in operator ()()
137 CHECK(utils::IsEqual()(ca->first, value.first)); in operator ()()
138 CHECK(utils::IsEqual()(ca->second, value.second)); in operator ()()
141 CHECK(my_c.count( value.first ) == 0); in operator ()()
143 CHECK(my_c.insert( ca, value )); in operator ()()
144 CHECK(utils::IsEqual()(ca->first, value.first)); in operator ()()
145 CHECK(utils::IsEqual()(ca->second, value.second)); in operator ()()
149 CHECK(my_c.find( a, value.first )); in operator ()()
151 CHECK(utils::IsEqual()(a->first, value.first)); in operator ()()
152 CHECK(utils::IsEqual()(a->second, value.second)); in operator ()()
155 CHECK(my_c.count( value.first ) == 0); in operator ()()
157 CHECK(my_c.insert( a, value )); in operator ()()
158 CHECK(utils::IsEqual()(a->first, value.first)); in operator ()()
159 CHECK(utils::IsEqual()(a->second, value.second)); in operator ()()
162 CHECK(my_c.erase( value.first )); in operator ()()
163 CHECK(my_c.count( value.first ) == 0); in operator ()()
164 …efault_construction_test<default_construction_present>()(test_insert_by_key<Table>( my_c, value )); in operator ()()
166 CHECK(my_c.insert( value ) != default_construction_present); in operator ()()
168 std::pair<iterator,iterator> r1 = my_c.equal_range( value.first ); in operator ()()
170 … CHECK((utils::IsEqual()( *r1_first_prev, value ) && utils::IsEqual()( r1.first, r1.second ))); in operator ()()
171 std::pair<const_iterator,const_iterator> r2 = const_c.equal_range( value.first ); in operator ()()
173 … CHECK((utils::IsEqual()( *r2_first_prev, value ) && utils::IsEqual()( r2.first, r2.second ))); in operator ()()
380 return my_hash_compare.hash(key.value()); in hash()
385 return my_hash_compare.equal(key1.value(), key2.value()); in equal()
701 static_assert(std::is_same<int, typename Map::key_type>::value, "Incorrect test setup"); in test_chmap_access_mode()
716 typename Map::value_type value{3, 3}; in test_chmap_access_mode() local
717 result = map.insert(acc, value); in test_chmap_access_mode()