C++ (Qt)enum {Key, Value}; std::tuple<std::string, std::string> keyValue_;std::get<Key> (keyValue_);
C++ (Qt)#define CREATE_STRUCT(name, first, second) \ template <class T1, class T2> \ struct name \ { \ T1 first; \ T2 second; \ ... }; CREATE_STRUCT(range, min, max)CREATE_STRUCT(point, x, y)