-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename PriorityQueue's T to Element and iterator to Iterator, avoidin…
…g need for typealiases. (#91) Motivation: We've found following these conventions in the standard library simplifies the code significantly if you create a lot of generic types that conform to the std lib protocols. Modifications: Change the placeholder T to Element and remove now-unnecessary typealias. Switch the name of the iterator to just Iterator, and have it re-use the outer type's Element placeholder. Remove now-unnecessary typealiases. Add deprecated typealiases to make this a non-breaking change. Result: Should be a non-functional change. Explicit typing outside the PriorityQueue type would need to change, but there wasn't any.
- Loading branch information
1 parent
2a9e2d6
commit 2c1d993
Showing
1 changed file
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters