CollectionPriorityQueueIndexer
public struct CollectionPriorityQueueIndexer<
Key: IdIndexable,
Table: RandomAccessCollection & MutableCollection,
Value
>: PriorityQueueIndexer, IndexProtocol
where Table.Index == Int, Table.Element == Value?
extension CollectionPriorityQueueIndexer: DefaultInitializable where Table: DefaultInitializable
Adapts a collection indexed by Ints into a PriorityQueueIndexer and IndexProtocol.
See also
ArrayPriorityQueueIndexer.
-
The collection that stores the mappings from
Ints toValue?s.Declaration
Swift
public var table: Table -
Constrcuts
selfby wrappingtable.Declaration
Swift
public init(_ table: Table) -
Accesses the value associated with
key.Declaration
Swift
public subscript(key: Key) -> Value? { get set }
-
Default initialization.
Declaration
Swift
public init()
View on GitHub
CollectionPriorityQueueIndexer Structure Reference