Does valarray
have contiguous memory alignment?
I want to pass a valarray to a function (from IPPS), which only takes pointers, by passing &myValarray[0]
. But therefore I should be sure, that valarray's memory alignment is contiguous.
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…