Add operator << to add for TupleLike
This commit is contained in:
parent
16af4a548f
commit
777424069c
1 changed files with 7 additions and 0 deletions
|
@ -555,4 +555,11 @@ consteval auto Take() {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <TupleLike Tuple, typename T>
|
||||||
|
inline constexpr auto operator<<(Tuple&& tuple, T&& t) {
|
||||||
|
return Unpack(std::forward<Tuple>(tuple), [&]<typename... Ts>(Ts&&... args){
|
||||||
|
return MakeTuple<Tuple>(std::forward<Ts>(args)..., std::forward<T>(t));
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace utempl
|
} // namespace utempl
|
||||||
|
|
Loading…
Reference in a new issue