I have 6 functions taken from a toolbox for signal processing where a lot of vectors are used. Due to some memory issues on my DSP I need to use arrays instead. Is there an easy way to convert vectors to arrays and also the functions used i.e. insert, push_back, erase etc.?
Share
You can use the guarantee that c++ vector element storage is contiguous in memory and use
to get a “pointer to an array” out of a vector.