Removing from SList (std.container)...
Minas Mina
minas_mina1990 at hotmail.co.uk
Wed Jun 27 03:00:34 PDT 2012
On Wednesday, 27 June 2012 at 09:52:14 UTC, Tobias Pankrath wrote:
> On Wednesday, 27 June 2012 at 09:37:01 UTC, Minas Mina wrote:
>> How can I do that?
>>
>> Why not list.remove(x); like in STL?
>
> std.container encodes the complexity of operations in the
> method names. There is no way to remove a range in constant
> time in SList, so you only get linearRemove.
>
> And you always need a range to remove something.
Can you show me an example or removing a number?
More information about the Digitalmars-d-learn
mailing list