Skip to content

Conversation

@copybara-service
Copy link

Use perfect forwarding in the function adapter instead of wrapping it into two layers of absl::AnyInvocable

The current implementation uses a type erased absl::AnyInvocable and then wraps it into another absl::AnyInvocable, which can be avoided by using a template and perfect forwarding.

@copybara-service copybara-service bot force-pushed the test_823963975 branch 3 times, most recently from 428abc2 to 9196a3f Compare October 28, 2025 15:14
… into two layers of `absl::AnyInvocable`

The current implementation uses a type erased `absl::AnyInvocable` and then wraps it into another `absl::AnyInvocable`, which can be avoided by using a template and perfect forwarding.

PiperOrigin-RevId: 825059992
@copybara-service copybara-service bot merged commit 7519eb1 into master Oct 28, 2025
@copybara-service copybara-service bot deleted the test_823963975 branch October 28, 2025 15:51
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.

1 participant