Title
The exposition-only alias templates cont-key-type and cont-mapped-type should be removed
Status
c++23
Section
[container.adaptors.general]
Submitter
Hewill Kang

Created on 2022-09-16.00:00:00 last changed 5 months ago

Messages

Date: 2022-11-17.00:42:33

Proposed resolution:

This wording is relative to N4917.

  1. Modify [container.adaptors.general] as indicated:

    -7- The exposition-only alias template iter-value-type defined in [sequences.general] and the exposition-only alias templates iter-key-type and iter-mapped-type defined in [associative.general] may appear in deduction guides for container adaptors.

    -8- The following exposition-only alias templates may appear in deduction guides for container adaptors:

    
    template<class Container>
      using cont-key-type =                                // exposition only
        remove_const_t<typename Container::value_type::first_type>;
    template<class Container>
      using cont-mapped-type =                             // exposition only
        typename Container::value_type::second_type;
    
Date: 2022-11-12.00:00:00

[ 2022-11-12 Approved at November 2022 meeting in Kona. Status changed: Voting → WP. ]

Date: 2022-10-15.00:00:00

[ 2022-10-12; Reflector poll ]

Set status to Tentatively Ready after seven votes in favour during reflector poll.

Date: 2022-09-16.00:00:00

P0429R9 removed the flat_map's single-range argument constructor and uses C++23-compatible from_range_t version constructor with alias templates range-key-type and range-mapped-type to simplify the deduction guide.

This makes cont-key-type and cont-mapped-type no longer useful, we should remove them.

History
Date User Action Args
2023-11-22 15:47:43adminsetstatus: wp -> c++23
2022-11-17 00:42:33adminsetmessages: + msg13078
2022-11-17 00:42:33adminsetstatus: voting -> wp
2022-11-08 03:46:49adminsetstatus: ready -> voting
2022-10-12 14:38:10adminsetmessages: + msg12855
2022-10-12 14:38:10adminsetstatus: new -> ready
2022-09-17 17:29:19adminsetmessages: + msg12775
2022-09-16 00:00:00admincreate