Tanis.Collections.Heap.Pop C# (CSharp) 메소드

Pop() 공개 메소드

Returns the topmost object on the list and removes it from the list
public Pop ( ) : object
리턴 object
		public object Pop()
		{
			if(FList.Count == 0)
				throw new InvalidOperationException("The heap is empty.");
			object Object = FList[Count-1];
			FList.RemoveAt(Count-1);
			return(Object);
		}