/*--------------------------------------------
Author: Max Ashton
Description: remove element by finding its position then removing it using remove_element_at
----------------------------------------------*/
struct_list_element* remove_element( maStructList &list, maStruListElement* pElement )
{
	unsigned int uiElementPost = find_element_posstion( list, pElement );

	if( uiElementPost != ELEMENTNOTINLIST )
	{
		return remove_element_at( list, uiElementPost );
	}

	return NULL;
}
Ejemplo n.º 2
0
void Utility::ChainList::pop_front()
{
  remove_element_at(0);
}
Ejemplo n.º 3
0
void Utility::ChainList::pop_back()
{
  remove_element_at(length-1);
}