gcc/libstdc++-v3/testsuite/23_containers/multimap
Jonathan Wakely b3e2dc1ed9 Add more testcases for class template argument deduction of maps
This adds additional tests for std::map and std::multimap CTAD. The
tests ensure that deduction works for braced-init-list of value_type
objects, and for pairs of input iterators (with both std::pair<Key, T>
and value_type as the iterator's value_type). This ensures deduction
from value_type still works, as well as the non-value_type cases in LWG
3025.

Similar tests for unordered maps do not work, apparently because the
constructor taking an initializer_list<value_type> is not usable for
deduction, and the deduction guide taking initializer_list<pair<Key, T>>
deduces key_type to be const. I am not addressing that.

	* testsuite/23_containers/map/cons/deduction.cc: Test deduction from
	initializer_list<value_type> and from input iterator ranges.
	* testsuite/23_containers/multimap/cons/deduction.cc: Likewise.

From-SVN: r267518
2019-01-02 16:30:49 +00:00
..
allocator Update copyright years. 2019-01-01 13:31:55 +01:00
capacity Update copyright years. 2019-01-01 13:31:55 +01:00
cons Add more testcases for class template argument deduction of maps 2019-01-02 16:30:49 +00:00
debug Update copyright years. 2019-01-01 13:31:55 +01:00
modifiers Update copyright years. 2019-01-01 13:31:55 +01:00
operations Update copyright years. 2019-01-01 13:31:55 +01:00
requirements Update copyright years. 2019-01-01 13:31:55 +01:00
14340.cc Update copyright years. 2019-01-01 13:31:55 +01:00
23781_neg.cc Update copyright years. 2019-01-01 13:31:55 +01:00
48101_neg.cc Update copyright years. 2019-01-01 13:31:55 +01:00
48101-2_neg.cc Update copyright years. 2019-01-01 13:31:55 +01:00
58764.cc Update copyright years. 2019-01-01 13:31:55 +01:00
init-list.cc Update copyright years. 2019-01-01 13:31:55 +01:00
pmr_typedefs_debug.cc Update copyright years. 2019-01-01 13:31:55 +01:00
pmr_typedefs.cc Update copyright years. 2019-01-01 13:31:55 +01:00
range_access.cc Update copyright years. 2019-01-01 13:31:55 +01:00