2 ms·
However, most std::functions have a small built-in buffer for captured variables, like 4 pointers worth. If you limit yourself to only capturing that many, ther
by tlb 6y ago
However, most std::functions have a small built-in buffer for captured variables, like 4 pointers worth. If you limit yourself to only capturing that many, there's no allocation.
- mwkaufma 6y agoI'm not saying that the default allocation strategy isn't good (in the general case), just that it's not customizable (for special needs).