Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | List of all members
Loyc.Collections.ITryPop< out T > Interface Template Reference

Represents a collection that produces a sequence of items, and can return the next item without popping it (the Peek operation). More...


Source file:
Inheritance diagram for Loyc.Collections.ITryPop< out T >:
Loyc.Collections.IIsEmpty Loyc.Collections.IPop< out T > Loyc.Collections.IQueue< T > Loyc.Collections.IStack< T > Loyc.Collections.VList< T > Loyc.Collections.IPriorityQueue< T > Loyc.Collections.VList< T >.Enumerator Loyc.Collections.MaxHeap< T, TList, TComparer > Loyc.Collections.MaxHeap< T > Loyc.Collections.MaxHeapInList< T > Loyc.Collections.MinHeap< T, TList, TComparer > Loyc.Collections.MinHeap< T > Loyc.Collections.MinHeapInList< T >

Remarks

Represents a collection that produces a sequence of items, and can return the next item without popping it (the Peek operation).

Push/Pop methods that throw an exception on failure, and TryPush/TryPop methods that don't require an "out" argument, are available as extension methods.

Public Member Functions

TryPop (out bool isEmpty)
 
TryPeek (out bool isEmpty)
 

Additional Inherited Members

- Properties inherited from Loyc.Collections.IIsEmpty
bool IsEmpty [get]