ConcurrentPriorityQueueTKey, TValueTryDequeueIf(FuncTKey, TValue, Boolean, TKey, TValue) Method |
Dequeues the minimum key value if the predicate returns true for the minimum key and value. Returns true if the item was dequeued; otherwise, false.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic bool TryDequeueIf(
Func<TKey, TValue, bool> predicate,
out TKey key,
out TValue value
)
Parameters
- predicate FuncTKey, TValue, Boolean
- Predicate to test the minimum key and value.
- key TKey
- The minimum key value, if found and dequeued.
- value TValue
- The value associated with the minimum key, if found and dequeued.
Return Value
BooleanTrue if the item was dequeued; otherwise, false.
See Also