![]() map's allocator may only be used to construct objects of 'value_type', or in this case 'pair<const Key, Value>'. In order to respect this requirement in operator[], which requires default constructing the 'mapped_type', we have to use pair's piecewise constructor with '(tuple<Kep>, tuple<>)'. Unfortunately we still need to provide a fallback implementation for C++03 since we don't have <tuple>. Even worse this fallback is the last remaining user of '__hash_map_node_destructor' and '__construct_node_with_key'. This patch also switches try_emplace over to __tree.__emplace_unique_key_args. llvm-svn: 264989 |
||
---|---|---|
.. | ||
map.access | ||
map.cons | ||
map.modifiers | ||
map.ops | ||
map.special | ||
allocator_mismatch.fail.cpp | ||
compare.pass.cpp | ||
incomplete_type.pass.cpp | ||
types.pass.cpp | ||
version.pass.cpp |