Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the Comparer in Heap<T> #3

Open
rhanekom opened this issue Jan 31, 2013 · 0 comments
Open

Setting the Comparer in Heap<T> #3

rhanekom opened this issue Jan 31, 2013 · 0 comments

Comments

@rhanekom
Copy link
Member

Original author: rhane...@gmail.com (August 08, 2009 19:00:16)

I have a need to set the comparer for the heap after it is constructed (but
before it is filled). Basically, I want to separate the type of collection
I am using from the logic. I would propose we expose the comparerToUse
field as a property and when set we simply call this.Clear() to ensure the
heap is valid.

Original issue: http://code.google.com/p/ngenerics/issues/detail?id=3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant