`StrictNumeric` in `base::span::first(...)` and `last(...)`: Prep 1/N.

This CL prepares for using `StrictNumeric<size_t>` (instead of just
`size_t`) as the type of a parameter taken by `base::span::first` and/or
`base::span::last` methods.  This is done by tweaking callers of these
methods to ensure that they either:

* Pass a `size_t` value as an argument, or
* Pass size as a compile-time argument (e.g. `some_span.first<123>()`)

This CL also opportunistically performs a similar change for some
callers of `base::span::subspan`.

Bug: 1490484
Change-Id: I39e42114590e663a42b25d178e08ac598e8f45d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5213529
Reviewed-by: Ken Rockot <rockot@google.com>
Owners-Override: danakj <danakj@chromium.org>
Commit-Queue: Ɓukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1253610}
NOKEYCHECK=True
GitOrigin-RevId: 54cc8a274ba1e6c671aa64f26a11eb3c5754e2a8
1 file changed