Feature request: for_each_field multiple visitation
オープン
- 主要言語
- C++
- スター
- 1.5k
- フォーク
- 176
- 平均マージ
- 5日 21時間
- マージ済み PR(30日)
- 1
説明
Multiple visitation is easy enough to achieve with a library like Boost.Hana (see below), but I think it would be useful functionality for ```for_each_field``` to support directly.
```cpp
template
constexpr auto for_each_field(Invocable f, Aggregates&&... xs) -> void
{
namespace hana = boost::hana;
hana::for_each(hana::zip(boost::pfr::structure_tie(xs)...), hana::fuse(std::move(f)));
}
```
[Example on Compiler Explorer](https://godbolt.org/z/K9Krfh)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。