Lines Matching refs:Container

26 template <typename Container>
68 template <typename Container>
69 void test_node_handle( Container test_table ) { in test_node_handle()
72 using node_type = typename Container::node_type; in test_node_handle()
147 template <typename Container>
148 typename Container::node_type generate_node_handle( const typename Container::value_type& value ) { in generate_node_handle()
149 Container table; in generate_node_handle()
154 template <typename Container>
155 void check_insert( const Container& table,
156 typename Container::iterator result,
157 const typename Container::value_type* node_value = nullptr )
163 if (AllowMultimapping<Container>::value) {
172 REQUIRE_MESSAGE((result == table.find(Value<Container>::key(*node_value)) &&
180 template <typename Container>
181 void check_insert( const Container& table,
182 typename Container::iterator result,
184 const typename Container::value_type* node_value = nullptr )
190 template <typename Container>
191 void check_insert( const Container& table,
192 const std::pair<typename Container::iterator, bool>& result,
194 const typename Container::value_type* node_value = nullptr )
197 REQUIRE_MESSAGE((result.second == successful || AllowMultimapping<Container>::value),
202 template <typename Container, typename... Hint>
203 void test_insert_overloads(Container& table_to_insert, const typename Container::value_type& value,… in test_insert_overloads()
205 typename Container::node_type nh; in test_insert_overloads()
215 nh = generate_node_handle<Container>(value); in test_insert_overloads()
222 nh = generate_node_handle<Container>(value); in test_insert_overloads()
227 if (AllowMultimapping<Container>::value) { in test_insert_overloads()
236 template <typename Container>
237 void test_insert( Container table, const typename Container::value_type& value ) { in test_insert()
239 Container table_backup(table); in test_insert()
244 template <typename Container>
245 void test_extract( Container table_for_extract, typename Container::key_type new_key ) { in test_extract()
255 auto key = Value<Container>::key(expected_value); in test_extract()
265 auto key2 = Value<Container>::key(expected_value2); in test_extract()
274 template <typename Container>
275 void test_node_handling( const Container& container, const typename Container::value_type& new_valu… in test_node_handling()
278 test_extract(container, Value<Container>::key(new_value)); in test_node_handling()
281 template <typename Container>
283 Container cont; in test_node_handling_support()
286 cont.insert(Value<Container>::make(i)); in test_node_handling_support()
289 if (AllowMultimapping<Container>::value) { in test_node_handling_support()
290 cont.insert(Value<Container>::make(4)); in test_node_handling_support()
293 test_node_handling(cont, Value<Container>::make(5)); in test_node_handling_support()