Skip to content

Use Abseil idioms for RAII cleanup, non-owning callbacks, and container algorithms - #1833

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_967903003
Aug 25, 2026
Merged

Use Abseil idioms for RAII cleanup, non-owning callbacks, and container algorithms#1833
copybara-service[bot] merged 1 commit into
mainfrom
test_967903003

Conversation

@copybara-service

Copy link
Copy Markdown

Use Abseil idioms for RAII cleanup, non-owning callbacks, and container algorithms

I noticed that some areas with necessary cleanup after invoking a callback could be improved with absl::Cleanup, and that we were also using the allocating and deprecated std::function when we should be using absl::FunctionRef. I also cleaned up some lints suggesting to use absl::c_sort and absl::c_transform as opposed to the std variants.

@google-cla

google-cla Bot commented Aug 20, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service
copybara-service Bot force-pushed the test_967903003 branch 5 times, most recently from b72afa7 to 5ac637b Compare August 25, 2026 17:39
…er algorithms

I noticed that some areas with necessary cleanup after invoking a callback could be improved with `absl::Cleanup`, and that we were also using the allocating and deprecated `std::function` when we should be using `absl::FunctionRef`. I also cleaned up some lints suggesting to use `absl::c_sort` and `absl::c_transform` as opposed to the `std` variants.

PiperOrigin-RevId: 970660531
@copybara-service
copybara-service Bot merged commit 8a5c16f into main Aug 25, 2026
1 of 2 checks passed
@copybara-service
copybara-service Bot deleted the test_967903003 branch August 25, 2026 17:55
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.

0 participants