commit | 22961f56a2bdc9897d452209429d03655daa006e | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Wed Mar 13 00:06:55 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 13 00:06:55 2024 +0000 |
tree | d34ab453137edc5722350f44eb4b5452a1efd020 | |
parent | 96c4cc2fc472b5797b6241a95122485d7c27c57c [diff] |
pw_allocator: Various API modifications This CL makes a number of small modifications to the ``pw_allocator`` interface: * Added Layout equality operators. * Added guards against explicitly providing argument parameter-pack types in ``New<T>`` and ``UniquePtr<T>``. * Added a check against null to ``Deallocate`` so no implementation of ``DoDeallocate`` needs to. * Added a check against trivial resizes to ``Resize`` so no implementation of ``DoResize`` needs to. Related tests and examples were added or updated. Change-Id: I64caa20efb337a8a01b40559698f2b7300b401c2 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/195973 Commit-Queue: Aaron Green <aarongreen@google.com> Reviewed-by: Taylor Cramer <cramertj@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/.