boostorg / boostorg/hof

about unpack_sequence customization point

未关闭
#76 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
509
派生
94
PR 合并指标
30 天内没有已合并 PR

描述

I'm not completely against the way you have customized unpack, but I prefer to overload non-member functions than using some kind of traits.

I would preferred if `std::experimental::apply` could be customizable and so

```
unpack(f)(product_type) <==> std::tuple::apply(f, product_type)
```

This has the advantage that the user can use the `apply` function when it has the function and the product-type.

What about replacing `unpack_sequence` by an overloaded `apply`?

Overloading `apply` has the liability that it is not a high-order function, but we can have an `apply_fn` that is hof.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。