コード例 #1
0
        private MaxHeap(MaxHeap <TItem> heap)
        {
            _count    = heap._count;
            _comparer = heap._comparer;

            _array = new TItem[heap._array.Length];

            for (int i = 0; i < _array.Length; i++)
            {
                _array[i] = heap._array[i];
            }
        }