www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DList -- removing an element


I have created a DList of class objects. Now I want to delete a particular
object from the list. I do not see a straightforward way of doing that. The
only way I found was to create a DList range, take out all other elements
from the range using popFront and popBack and then apply remove(Range).

Am I missing something?

- Puneet
Dec 30 2012