rem: q->RemoveEvent(&media_timed_event(0x1005,BTimedEventQueue::B_START));
add: media_timed_event e14(0x1005,BTimedEventQueue::B_START); q->RemoveEvent(&e14);
context: void InsertRemoveTest(){	BTimedEventQueue *q =new BTimedEventQueue;	q->AddEvent(media_timed_event(0x1007,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x1005,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x9999,BTimedEventQueue::B_STOP));//	q->AddEvent(media_timed_event(0x1006,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x1002,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x1011,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x1000,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x0777,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x1001,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x1000,BTimedEventQueue::B_STOP));//	q->AddEvent(media_timed_event(0x1003,BTimedEventQueue::B_START));//	q->AddEvent(media_timed_event(0x1000,BTimedEventQueue::B_SEEK));//	ASSERT(q->EventCount() == 12);	ASSERT(q->HasEvents() == true);		q->RemoveEvent(&media_timed_event(0x1003,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 11);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1007,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 10);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1000,BTimedEventQueue::B_STOP));	ASSERT(q->EventCount() == 9);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1000,BTimedEventQueue::B_SEEK));	ASSERT(q->EventCount() == 8);	ASSERT(q->HasEvents() == true);	//remove non existing element (time)	q->RemoveEvent(&media_timed_event(0x1111,BTimedEventQueue::B_STOP));	ASSERT(q->EventCount() == 8);	ASSERT(q->HasEvents() == true);	//remove non existing element (type)	q->RemoveEvent(&media_timed_event(0x1011,BTimedEventQueue::B_STOP));	ASSERT(q->EventCount() == 8);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1000,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 7);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1011,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 6);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1002,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 5);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x0777,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 4);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x9999,BTimedEventQueue::B_STOP));	ASSERT(q->EventCount() == 3);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1006,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 2);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1001,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 1);	ASSERT(q->HasEvents() == true);	q->RemoveEvent(&media_timed_event(0x1005,BTimedEventQueue::B_START));	ASSERT(q->EventCount() == 0);	ASSERT(q->HasEvents() == false);		delete q;}