removing element from DList

Michael pr at m1xa.com
Mon Nov 5 10:06:42 PST 2012


On Monday, 5 November 2012 at 16:41:16 UTC, Jack Applegame wrote:
> How to get range for single just inserted element?
>
> DList!int list;
> ...
> list.insertBack(5);
> auto r = ??? // get range for single last element
> ...
> list.insertBack(something);
> ...
> list.remove(r);

Something like

>>auto r = list[$ - 1];


More information about the Digitalmars-d-learn mailing list