Skip to content

Commit 67fef8e

Browse files
committed
document ContainsAll trait
1 parent 48878ef commit 67fef8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/common/result_impl.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ concept InPack = (std::same_as<std::remove_cvref_t<T>, Ts> || ...);
157157
template<typename... Ts>
158158
struct type_pack {};
159159

160+
/**
161+
* @brief Check if all the types in the second type pack are present in the first type pack
162+
*
163+
* @tparam PackA
164+
* @tparam PackB
165+
*/
160166
template<typename PackA, typename PackB>
161167
concept ContainsAll = []<typename... As>(type_pack<As...>) {
162168
return []<typename... Bs>(type_pack<Bs...>) {

0 commit comments

Comments
 (0)