please i want to return multiple values in c++ ,
and i have this peace of struct
struct returns {
int row_locs,col_locs;
int row_descriptors,col_descriptors;
double **locs;
double **descriptors;
};
and i have this pease of call by reference
void returns (int &row_locs,int &col_locs,int &row_descriptors,int &col_descriptors,double **locs, double **descriptors){
}
the question is
what doesn't consume more time struct or call by reference ??
Thanks in advanced