4 ms·
This seems like an extremely niche use-case, compared to the prevalence of use-cases needing to check the size of a list.
by jfrunyon 5y ago
This seems like an extremely niche use-case, compared to the prevalence of use-cases needing to check the size of a list.
- ycombobreaker 5y agoThis niche is exactly why I've used std::list in several cases. It allows fairly easy preallocation of list nodes. Fortunately, the single-node splice is still fast. But batch allocations, say related to some scatter/gather operations, would still be hit by this change.