-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Adds mapValues
and compactMapValues
to CxxDictionary:
#83429
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
base: main
Are you sure you want to change the base?
Adds mapValues
and compactMapValues
to CxxDictionary:
#83429
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I have a couple of questions.
@@ -144,6 +144,58 @@ extension CxxDictionary { | |||
} | |||
} | |||
|
|||
public func mapValues<R, E>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this method also be @inlinable
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion! I've added the @inlinable
attribute.
Could you please re-trigger the test job?
} | ||
|
||
@inlinable | ||
@_disfavoredOverload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just trying to understand this better, why do we need @_disfavoredOverload
on this overload?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without @_disfavoredOverload
, this method would call itself recursively by default.
@swift-ci please smoke test |
cecfa9f
to
4426912
Compare
No description provided.