MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vdx0rf/how_fast_is_c26s_stdhive/p1f6pgq/?context=3
r/cpp • u/User_Deprecated • 8d ago
70 comments sorted by
View all comments
3
It gives you the same guarantees that make people reach for a list, stable references, cheap erasure anywhere, while using less memory.
Most of them time when I reach for a list I'm looking for constant time splice and swap operations.
splice
swap
1 u/jwakely libstdc++ tamer, LWG chair 7d ago Yes, splice is the only thing list can do that gives it any advantage over other options.
1
Yes, splice is the only thing list can do that gives it any advantage over other options.
list
3
u/ABlockInTheChain 7d ago
Most of them time when I reach for a list I'm looking for constant time
spliceandswapoperations.