dot dot dot dot dot dot - 1 year ago 77
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download