Name |
Last commit
|
Last update |
---|---|---|
.. | ||
allocator | ||
capacity | ||
cons | ||
debug | ||
modifiers | ||
operations | ||
requirements | ||
14340.cc | ||
23781_neg.cc | ||
48101-2_neg.cc | ||
48101_neg.cc | ||
58764.cc | ||
init-list.cc | ||
pmr_typedefs.cc | ||
pmr_typedefs_debug.cc | ||
range_access.cc |
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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
allocator | Loading commit data... | |
capacity | Loading commit data... | |
cons | Loading commit data... | |
debug | Loading commit data... | |
modifiers | Loading commit data... | |
operations | Loading commit data... | |
requirements | Loading commit data... | |
14340.cc | Loading commit data... | |
23781_neg.cc | Loading commit data... | |
48101-2_neg.cc | Loading commit data... | |
48101_neg.cc | Loading commit data... | |
58764.cc | Loading commit data... | |
init-list.cc | Loading commit data... | |
pmr_typedefs.cc | Loading commit data... | |
pmr_typedefs_debug.cc | Loading commit data... | |
range_access.cc | Loading commit data... |