BMX to CPP

Miscellaneous Forums/General Discussion/BMX to CPP

What is the equivalent in CPP to a link object?

Here is my entity constructor and destructor. You can see when it is created it gets added to the world entities list. How can I remove it from the list upon deletion?:
	Entity::Entity() {
		pWorld = World::current();
		pWorld->entities.push_front( this );
	}
	
	void ~Entity() {
		pWorld = null;
	}


This is the BMX equivalent:
Method New()
world=TWorld.Current()
link=world.entities.addfirst(self)
EndMethod

Method Free()
world=Null
link.Remove()
EndMethod