vector< pair<pair<int, string> >, string> v;
Also mention how to access them using 'first' and second'. Is it even possible to do this or is "union" or "structure" the only way to create vector that can hold more than two data types?
vector< pair<pair<int, string> >, string> v;
Also mention how to access them using 'first' and second'. Is it even possible to do this or is "union" or "structure" the only way to create vector that can hold more than two data types?
Copyright © 2021 Jogjafile Inc.
std::vector< std::pair<std::pair<int, std::string>, std::string> > v;
is possible, withstd::tuple
is a good alternative:A proper structure allow to give semantic