Skip to content

Commit b316993

Browse files
authored
name DefaultReverseOrdering
1 parent 51693d2 commit b316993

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/heaps/binary_heap.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ BinaryHeap(ordering::Base.Ordering, xs::AbstractVector{T}) where T = BinaryHeap{
5050
BinaryHeap{T, O}() where {T, O<:Base.Ordering} = BinaryHeap{T}(O())
5151
BinaryHeap{T, O}(xs::AbstractVector) where {T, O<:Base.Ordering} = BinaryHeap{T}(O(), xs)
5252

53-
const BasicReverseOrdering = Base.ReverseOrdering{Base.ForwardOrdering}
53+
const DefaultReverseOrdering = Base.ReverseOrdering{Base.ForwardOrdering}
5454

5555
# These constructors needed for BinaryMaxHeap, until we have https://github.com/JuliaLang/julia/pull/37822
56-
BinaryHeap{T, BasicReverseOrdering}() where {T} = BinaryHeap{T}(Base.Reverse)
57-
BinaryHeap{T, BasicReverseOrdering}(xs::AbstractVector) where {T} = BinaryHeap{T}(Base.Reverse, xs)
56+
BinaryHeap{T, DefaultReverseOrdering}() where {T} = BinaryHeap{T}(Base.Reverse)
57+
BinaryHeap{T, DefaultReverseOrdering}(xs::AbstractVector) where {T} = BinaryHeap{T}(Base.Reverse, xs)
5858

5959
# Forward/reverse ordering type aliases
6060
const BinaryMinHeap{T} = BinaryHeap{T, Base.ForwardOrdering}
61-
const BinaryMaxHeap{T} = BinaryHeap{T, BasicReverseOrdering}
61+
const BinaryMaxHeap{T} = BinaryHeap{T, DefaultReverseOrdering}
6262

6363
BinaryMinHeap(xs::AbstractVector{T}) where T = BinaryMinHeap{T}(xs)
6464
BinaryMaxHeap(xs::AbstractVector{T}) where T = BinaryMaxHeap{T}(xs)

0 commit comments

Comments
 (0)