commit | f79b9d077090884d7781ce88c6ca1e7609922a65 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Mon Nov 08 16:03:53 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 09 20:36:59 2021 +0000 |
tree | 06cfbd127ba0a37e22f1c3e13330d48362d91a7b | |
parent | d71f4f66c3303cc855c06462c9fb43c1c8d27ecc [diff] |
pw_function: Pass by reference or rvalue reference Pass pw::Function by rvalue reference instead of by value, which saves unnecessary moves and reduces code size. Requires: pigweed-internal:17601 Change-Id: Ib96da4c35e95e2f2c54595ae0e6b0a9e58298f09 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/67943 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Ewout van Bekkum <ewout@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/