Skip to content

Commit

Permalink
PriorityQueue<TKey, TValue> is obsolete in .NET 6 or newer
Browse files Browse the repository at this point in the history
.NET 6 has System.Collections.Generic.PriorityQueue<TElement, TPriority>.
  • Loading branch information
kzrnm committed Mar 5, 2021
1 parent 280a5ac commit c8ba675
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/AtCoderLibrary/STL/PriorityQueue`2.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
#if !NET6_0_OR_GREATER
using System.Collections.Generic;
using System.Diagnostics;
using AtCoder.Internal;

Expand All @@ -13,3 +14,4 @@ public PriorityQueue(IComparer<TKey> comparer) : base(comparer) { }
public PriorityQueue(int capacity, IComparer<TKey> comparer) : base(capacity, comparer) { }
}
}
#endif

0 comments on commit c8ba675

Please sign in to comment.