I need to vector with, boolean, std:string and int, I googled and multidimensional vector defined as :
std::vector< std::vector< std::vector <std::vector<int> > > a;
But it has problem for me, it has just one data type, I found pair:
std::vector<std::pair<bool,float> > a;
but std::pair has problem and can’t define more two dimension.
question:
how can i define multidimensional vector with each dimension has a specific data type?
note: i need to 3 dimensions.
You can use std::tuple
But this is not a multidimentional vector. its a linear vector of tuples.