Hello,
I would like to return a multidimensional array from a pointer function.But multidimensional array dimension's will be enormous.For example,width will be 500 and height will be 600.
Could you help me please?
Hello,
I would like to return a multidimensional array from a pointer function.But multidimensional array dimension's will be enormous.For example,width will be 500 and height will be 600.
Could you help me please?
Pass the array to the function, then modify the array in the function. If you are using a container instead, pass the container by reference.
Side note: if you used functors instead of function pointers, then you could return a vector from the functor and hopefully the compiler will optimize it.