[libc++] Provide `optional::iterator` a packed, bounded representation (#203782)
The current situation with `optional::iterator`:
If the ABI switch is on, then `optional`'s iterator type is
`__bounded_iter` as it is a bit stronger, since
`__static_packed_bounded_iter` can only guarantee that a dereference
isn't out of bounds `__bounded_iter` can guard against dereferencing an
uninitialized item in bounds.
Otherwise, if `T` fulfills the alignment requirements for
`__static_packed_bounded_iter`, then the iterator type is that.
Otherwise, it is `__capacity_aware_iterator`.
Due to the implementation of `__static_packed_bounded_iter` which relies
on pointer tagging, `optional::iterator` cannot be constexpr.
GitOrigin-RevId: ed37935e8fddb4b498d4ac6458c6e6a7e147d926
14 files changed