News for hackers. Stuff that matters.
Re:C++: The Most Important Complexities by foma-roje on Thursday November 16, 2023 @02:13AM (#38286573)
An often missed c++ Container is std::deque, which has constant O(1) complexities in adding and removing from front and back, and accessing random elements. This is missing in the article.
Re:C++: The Most Important Complexities by mike_hock on Thursday November 16, 2023 @02:22AM (#38286628)
Which only has a reasonable implementation in one of the three major stdlibs (libc++).
Re:C++: The Most Important Complexities by mgaunard on Thursday November 16, 2023 @03:41AM (#38287063)
The libstdc++ one is also pretty good.
Re:C++: The Most Important Complexities by nly on Thursday November 16, 2023 @03:56AM (#38287159)
Boosts implementation has a configurable block size.