roll: pigweed pw_allocator: Add conversions for managed pointers

This CL adds additional ways to convert managed pointers of one type to
another, in order to make them more flexible and usable by downstream
projects.

* Explicit conversion operators are added to allow downcasting.
* A SharedPtr constructor that takes a UniquePtr is added.
* Some missing comparison operators were added to aid testing.

Original-Bug: 432456663
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/317224
Original-Revision: 9404c71b7d35d364b35ac616eea6c8766ec40358

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: b22a59a7ce927c..9404c71b7d35d3
Roll-Count: 1
Roller-URL: https://cr-buildbucket.appspot.com/build/8703502838281037521
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ia89344f62a81ef94b2c6b89c03bd4cc92ef2fc0b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/323012
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
1 file changed
tree: bb2a14a7f76fe640de9e13b6c40fcddae518924e
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .black.toml
  14. .buildifier.json
  15. .clang-format
  16. .clang-tidy
  17. .clangd.shared
  18. .gitignore
  19. .pw_console.yaml
  20. .pylintrc
  21. AUTHORS
  22. BUILD.bazel
  23. CONTRIBUTING.md
  24. LICENSE
  25. MODULE.bazel
  26. MODULE.bazel.lock
  27. mypy.ini
  28. OWNERS
  29. pigweed.json
  30. pw
  31. README.md
  32. REPO.bazel
  33. workflows.json
README.md

Sense

git clone https://pigweed.googlesource.com/pigweed/showcase/sense

Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.

Please visit Sense: An interactive tour through Pigweed to get started.