471,089 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Is is possible to remove elements from the middle of a System.Collections.Queue?

Is is possible to remove elements from the middle of a
System.Collections.Queue? For the most part i just use endqueue and dequeue
but there are points where i know that i no longer need certain elements
that could be in the middle of the queue that i would like to clean out of
the queue. however, my queue size is gigabytes large and i cant afford the
time to reallocate the entire queue just to remove a middle element. do i
need to write my own link list sytle queue class or is there a way to just
remove items out of the middle of a System.Collections.Queue?
Nov 22 '05 #1
2 2077
You should probably reconsider which data structure you are using,
because, by definition, a queue only has enque and dequeue operations.

Nov 22 '05 #2
thats fine. so is there another datastructure that has the characteristics
of a queue and the characteristics of an arraylist? I fail to see why these
are sepperated, seems an unessicary limitation

"Patrick A" <pw*******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
You should probably reconsider which data structure you are using,
because, by definition, a queue only has enque and dequeue operations.

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Nicholas | last post: by
11 posts views Thread by Daniel | last post: by
2 posts views Thread by =?Utf-8?B?TWluIFlvbmc=?= | last post: by
4 posts views Thread by j_depp_99 | last post: by
10 posts views Thread by =?Utf-8?B?YmJn?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.