4 ms·
So it's C++11 but still uses naked pointers...
by speps 10y ago
So it's C++11 but still uses naked pointers...
- mohaps 10y agothe naked pointers are inside an internal kv namespace and are a convenience/carry over from the previous implementation (I've covered the justification for the way it's written in a comment above). the TL;DR is that it is written the way it is to achieve constant time remove/remove_and_add_to_end operations which is not an erase+append but more like an unlink/relink operation.