That is, on disk, if I have an array of std::complex
, is it stored RIRIRIRI
or RRRRIIII
or something else?
My real question is - if I have a structure that I have defined that contains two numbers, can I do a reinterpret cast an array of my structure to use functions that would expect a std::complex
array?
What about memcpy? If both of my structures are floats, that should be ok if they are stored the same?