on-internet
← Community

Is it possible to create a vector on the stack?

Stack Overflow ·

Due to optimization reasons I want my vector to exist in the cache, and having it on the stack greatly increases the odds of that. Is it possible to create a vector on the stack? I'm completely willing to re-implement my own variant of std::vector if necessary to make it work out. I'm also comfortable using inline assembly if necessary.

Comments

Sign in or sign up to comment and upvote.

No comments yet.