Bonita Montero wrote:
> Am 19.02.2021 um 17:13 schrieb Ralf Goertz:
>> Am Fri, 19 Feb 2021 14:56:43 +0100
>> schrieb Bonita Montero <
Bonita....@gmail.com>:
>>
>>> Am 19.02.2021 um 02:47 schrieb Pavel:
>>>> Is it possible to define Standard C++ Library Container Types UM,
>>>> OM and L such that:
>>>> - UM is an std::unordered_map with key_type int and mapped_type
>>>> iterator to OM
>>>> - OM is an std::map with key_type int and mapped_type L
>>>> - L is an std::list of iterators to UM
>>>
>>> #include <unordered_map>
>>> #include <map>
>>> #include <list>
>>>
>>> template<typename L>
>>> using OM = std::map<int, L>;
>>> template<typename L>
>>> using UM = std::unordered_map<int, typename OM<L>::iterator>;
>>> template<typename T>
>>> using L = std::list<typename OM<T>::iterator>;
>
> f.e.
> L<int> li;