dot dot dot dot dot dot - 8 months ago 45
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?


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