Skip to content

Specialization of std::hash for Retained<T>#280

Open
snej wants to merge 1 commit intomasterfrom
feature/hashable-retained
Open

Specialization of std::hash for Retained<T>#280
snej wants to merge 1 commit intomasterfrom
feature/hashable-retained

Conversation

@snej
Copy link
Contributor

@snej snej commented Feb 12, 2026

This makes Retained and Ref usable as keys in unordered_map and unordered_set.

I've been using this in BonjourProvider for a while, but the declaration belongs in RefCounted.hh.

This makes Retained and Ref usable as keys in unordered_map
and unordered_set.
@snej snej requested review from borrrden and jianminzhao February 12, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants