コード例 #1
0
	public void PushHeap()
	{
		ListIterator<int> pushHeapIt = FourTwoThreeOne.Begin().Copy(
			FourTwoThreeOne.End(),
			arrLong.Begin());
		pushHeapIt.SetCurrent(5);
		pushHeapIt = pushHeapIt.GetNext();
		arrLong.Begin().PushHeap(pushHeapIt, IsIntLessThanInt);
		Assert.That(arrLong, Is.EqualTo(new [] { 5, 4, 3, 1, 2, 0, 0, 0 }));
	}