LinkedList.removeAfter

Remove value after element. Note: element must be not null.

struct LinkedList(T, bool ordered = true)
void
removeAfter

Examples

LinkedList!int list;
scope(exit) list.free();

auto first = list.insertBack(1);
auto second = list.insertBack(2);
auto third = list.insertBack(3);
list.removeAfter(first);

import std.algorithm : equal;
assert(equal(list.byElement(), [1,3]));

Meta