2.2 KiB
[associative.general]
23 Containers library [containers]
23.4 Associative containers [associative]
23.4.1 General [associative.general]
The header defines the class templatesmap and multimap; the header defines the class templatesset and multiset.
The following exposition-only alias templates may appear in deduction guides for associative containers:templateusing iter-value-type =typename iterator_traits::value_type; // exposition onlytemplateusing iter-key-type = remove_const_t< tuple_element_t<0, iter-value-type>>; // exposition onlytemplateusing iter-mapped-type = tuple_element_t<1, iter-value-type>; // exposition onlytemplateusing iter-to-alloc-type = pair< add_const_t<tuple_element_t<0, iter-value-type>>, tuple_element_t<1, iter-value-type>>; // exposition onlytemplate<ranges::input_range Range>using range-key-type = remove_const_t<typename ranges::range_value_t::first_type>; // exposition onlytemplate<ranges::input_range Range>using range-mapped-type = typename ranges::range_value_t::second_type; // exposition onlytemplate<ranges::input_range Range>using range-to-alloc-type = pair<add_const_t<typename ranges::range_value_t::first_type>, typename ranges::range_value_t::second_type>; // exposition only