commit | f36fcd9b7ee313c7f74f48cdd443111ecc3b0ca1 | [log] [tgz] |
---|---|---|
author | aarongreen <aarongreen@google.com> | Tue May 30 22:30:03 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 30 22:30:03 2023 +0000 |
tree | f24b120d1eb3f386a44b6a19f53138637a6f91a6 | |
parent | 3b27bce19574ba1b1a8feaa5526128e9454a0475 [diff] |
pw_containers: Improve templated Vector::insert This CL reworks the templated overload of `Vector::insert` that takes two iterators to only match actual iterators. Previously, the template parameter `Iterator` could be anything, and calls meant for `insert(..., size_type, const T&)`, e.g. `insert(..., 3, 3)`, would instead resolve to the templated method and fail to compile. Change-Id: I3821417b055ab65328df3e6bebf627c760bf28f1 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/149031 Reviewed-by: Taylor Cramer <cramertj@google.com> Commit-Queue: Aaron Green <aarongreen@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/.