SList: How do I use linearRemove?

Lemonfiend via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 26 07:47:58 PDT 2014


---
module main;

void main()
{
	struct Tree { int apples; }

	import std.container;
	SList!Tree list;

	Tree tree = Tree(5);
	list.insert(tree);
	//list.linearRemove(tree); // <-- Error. What is the correct way?
}
---


More information about the Digitalmars-d-learn mailing list