Add default R template param to Map
This commit is contained in:
parent
9cb0811ecc
commit
2c327741b1
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ inline constexpr auto Transform(Tuple&& container, F&& f, TypeList<R> = {}) {
|
|||
}(std::make_index_sequence<kTupleSize<Tuple>>());
|
||||
};
|
||||
|
||||
template <TupleLike Tuple, typename R, typename F>
|
||||
template <TupleLike Tuple, typename R = Tuple, typename F>
|
||||
inline constexpr auto Map(Tuple&& tuple, F&& f, TypeList<R> result = {}) {
|
||||
return Transform(std::forward<Tuple>(tuple), std::forward<F>(f), result);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue