Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | List of all members
Loyc.Collections.IDeque< T > Interface Template Reference

Represents a double-ended queue that allows items to be added or removed at the beginning or end. More...


Source file:
Inheritance diagram for Loyc.Collections.IDeque< T >:
Loyc.Collections.IIsEmpty Loyc.Collections.ICount Loyc.Collections.IIsEmpty Loyc.Collections.AListBase< K, T > Loyc.Collections.DList< T > Loyc.Collections.INegDeque< T >

Remarks

Represents a double-ended queue that allows items to be added or removed at the beginning or end.

Template Parameters
TType of each element

Properties

First [get, set]
 Gets the first item in the deque. More...
 
Last [get, set]
 
- Properties inherited from Loyc.Collections.IIsEmpty
bool IsEmpty [get]
 
- Properties inherited from Loyc.Collections.ICount
int Count [get]
 Gets the number of items in the collection. More...
 

Public Member Functions

void PushFirst (T item)
 
void PushLast (T item)
 
Maybe< T > TryPopFirst ()
 
Maybe< T > TryPeekFirst ()
 
Maybe< T > TryPopLast ()
 
Maybe< T > TryPeekLast ()
 

Property Documentation

◆ First

T Loyc.Collections.IDeque< T >.First
getset

Gets the first item in the deque.

Exceptions
InvalidOperationException