-
Hello,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
vector allocates arrays of small items, so the size of the item isn't an issue, and |
Beta Was this translation helpful? Give feedback.
-
Hello,
|
Beta Was this translation helpful? Give feedback.
-
vector allocates arrays of small items, so the size of the item isn't an issue, and |
Beta Was this translation helpful? Give feedback.
vector allocates arrays of small items, so the size of the item isn't an issue, and
memory_pool
isn'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
.