template <typename T, typename M>
auto remap(
    pika::util::detail::strategy_remap_tag,
    T&& container,
    M&& mapper,
    typename std::enable_if<is_effective_t<
        M,
        element_of_t<T>>::value>::type* = nullptr)
    -> decltype(remap_container(
        container_mapping_tag_of_t<T, M>({}),
        static_cast<decltype(mapper)&&>(mapper),
        static_cast<decltype(container)&&>(
            container)))

Description

Remaps the content of the given container with type T, to a container of the same type which may contain different types.

Declared at: libs/pika/pack_traversal/include/pika/pack_traversal/detail/pack_traversal_impl.hpp:536

Parameters

pika::util::detail::strategy_remap_tag
T&& container
M&& mapper
typename std::enable_if< is_effective_t<M, element_of_t<T>>::value>::type* = nullptr