You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've never thought about this, but I strongly feel that implementing a lock-free mt-safe version of std::collections::VecDeque is virtually impossible. However, I think I can provide something similar using Queue<T> if the second condition - Possible to remove from any index - can be relaxed or removed.
On the other hand, TreeIndex offers what you want except for the third condition - push/pop front/back.
Ordered.
Indexed operations.
Iter and len.
So, it maybe easier to extend TreeIndex instead of using Queue.
The text was updated successfully, but these errors were encountered: