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 Int
s into a PriorityQueueIndexer
and IndexProtocol
.
See also
ArrayPriorityQueueIndexer
.
-
The collection that stores the mappings from
Int
s toValue?
s.Declaration
Swift
public var table: Table
-
Constrcuts
self
by 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()