This function does not participate in overload resolution if any IDx is outside [0, size_v<T>[.
namespace kumi::result
{
using reorder_t =
typename reorder<Tuple,Idx...>::type;
}
Concept specifying a type follows the Product Type semantic.
Definition: concepts.hpp:33
KUMI_TRIVIAL_NODISCARD constexpr auto reorder(Tuple &&t)
Reorder elements of a kumi::product_type.
Definition: reorder.hpp:43
#include <kumi/tuple.hpp>
#include <iostream>
int main()
{
std::cout << values << "\n";
std::cout << kumi::reorder<2,1,0>(values) << "\n";
std::cout << kumi::reorder<2,1,0,1,2>(values) << "\n";
std::cout << kumi::reorder<1,1>(values) << "\n";
}
Fixed-size collection of heterogeneous values.
Definition: tuple.hpp:35