dot dot dot dot dot dot - 1 month ago 6
C++ Question

Memory layout of a std::vector<__m128i>

For a vector of 128bit integer type (

std::vector<__m128i> vec;
), are those 128bit integers always put in contiguous memory?

Answer

Yes, that is the the vector guarantee. All elements will occupy a contiguous memory block, managed by the vector object.