pw_containers: Remove redundant DequeIterator checks - Dereferencing a deque iterator calls container_->at(), which performs an index check, so it's not necessary to check the index before calling at(). - Switch to a reference constructor since its simpler and the container should never be nullptr unless the iterator was default constructed. Change-Id: I0ae8c71f4be94d0661b18a4ba858ef5d88618977 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/301692 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Tests-Not-Needed: Wyatt Hepler <hepler@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Reviewed-by: Dave Roth <davidroth@google.com> Docs-Not-Needed: Wyatt Hepler <hepler@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Wyatt Hepler <hepler@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/.