Closed Bug 497047 Opened 17 years ago Closed 16 years ago

Need typesafe queue/deque data structures

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 551120

People

(Reporter: cjones, Unassigned)

Details

While working on Electrolysis stuff, I've come across a problem that wants a queue data structure. We have nsDeque, but it stores |void*|s and I therefore refuse to use it. I'm not going to write a typesafe one anytime soon because I can use the STL <queue> for the moment. A simple but not necessarily optimal way to build these would be to use nsTArray. I would prefer that queue/deque NOT be threadsafe, even as a non-default option.
Whiteboard: [good first bug]
If we were to implement mozilla::List/Queue/Deque, it would be really nice if they had an STL-like API.
RESO -> SUBSUMED
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Whiteboard: [good first bug]
You need to log in before you can comment on or make changes to this bug.