I want to make a templated class for labeled/named tuples as in each type of the tuple is associated with a static std::string.
When creating a new labeled tuple, I want to invoke it in the following way:
auto a = std::labeled_tuple<"key1", int, "key2", double>()
The number of strings has to match the number of types provided and obviously the length is variadic.
Syntactically the following is incorrect but it should further clarify what I want:
template<typename...template<std::string STR, typename Arg> T>
And I want to access STR... and T...
Any help would be appreciated, thanks.