|
Hello, |
Answered by
foonathan
Jul 9, 2023
Replies: 1 comment
|
vector allocates arrays of small items, so the size of the item isn't an issue, and |
0 replies
Answer selected by
chrisics
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vector allocates arrays of small items, so the size of the item isn't an issue, and
memory_poolisn't great about arrays. If your vector is large, you won't need a custom allocator - the default one should handle it fine. If your vector is small, you have many of them, and don't mind wasting memory for a while, you can usememory_stack.