AnyArrayStorage
public class AnyArrayStorage
Bounded-sized, reference-semantic, contiguous storage for elements of one statically-unknown type.
This class provides the element-type-agnostic API for ArrayStorage
-
Returns
true
iffself
may be used as the storage for elements of typee
.Declaration
Swift
public final func isUsable(forElementType e: TypeID) -> Bool
-
The number of elements stored in
self
.Invariant
count <= capacity
Declaration
Swift
public fileprivate(set) final var count: Int { get set }
-
The maximum number of elements that can be stored in
self
.Declaration
Swift
public final var capacity: Int { get }