Bug in std.container: SList
Xinok via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 14 12:44:15 PDT 2015
On Friday, 14 August 2015 at 18:12:42 UTC, anonymous wrote:
> Other insert* functions call the private function
> SList.initialize() which does the null-check for _root. I am
> working on a PR adding the missing call in insertAfter - that's
> a 1 line change. I am not a phobos dev.
I would do the null check in the insert* functions themselves.
Otherwise, you have the overhead of a function call, assuming the
function isn't inlined.
More information about the Digitalmars-d
mailing list