3 ms·
> Now you may put a comment if instead you sort things in the reverse order than usual, for example so that you can implement adding/removing a price level at t
by masklinn 5y ago
> Now you may put a comment if instead you sort things in the reverse order than usual, for example so that you can implement adding/removing a price level at the top more efficiently with std::vector (which is only efficient fot additions/removals at the back).
Though in that case you should probably have a comment explaining why you didn't use an std::deque.
- mgaunard 5y agoI'm not sure what such a comment would say? The advantages of vector over deque should be well known to any C++ programmer.