ArrayRef: Replace fromVector with subArray
Creating ArrayRef from iterators is potentially dangerous,
because it is incorrect for non-contiguous containers.
arrayRefFromVector(v.begin()+start, v.begin()+start+length)
is replaced with
ArrayRef<T>(v).subArray(start, length)
Also:
- Combine all conversion constructors
Removes code duplication and makes conversion more powerful
(e.g. base pointer or containers with allocators).
- remove fromPointers and arrayRefFromPointers
Wasn't used by any code
- remove fromArray and replace wih arrayRefFromArray
Change-Id: I05ad6b285ece58739d9f5bce48f9ecf4ade3454e
13 files changed: