We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
value_pack
1 parent c349348 commit ca002f2Copy full SHA for ca002f2
pack.hpp
@@ -76,6 +76,12 @@ namespace mlib {
76
return mlib::get_nth_element<I>(Ts...);
77
}
78
79
+ template<std::size_t... indexes>
80
+ constexpr auto select(std::index_sequence<indexes...> i_s)
81
+ {
82
+ return value_pack<(mlib::get_nth_element<indexes>(Ts...))...>{};
83
+ }
84
+
85
constexpr value_pack() { /*Does Nothing!*/}
86
87
constexpr auto tuple() { return std::tuple{Ts...}; }
0 commit comments