array_ref classes make the view const. It may be useful to extend that to allow modifications of the referenced array elements, and use array_ref<const T> for immutable views. basic_string_ref::substr for interface questions. We want something like this on array_ref, but probably not with this name.
1.8.13