Hacker News new | past | comments | ask | show | jobs | submit login

Sorry, let me clarify. Suppose you have a vector with 3 elements, and each individual element fits within a single memory page.

Then the array layout is:

page[0] : dummy page

page[1] : element 0

page[2] : dummy page

page[3] : element 1

page[4] : dummy page

page[5] : element 2

page[6] : dummy page

IIRC. It's been a while :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: