Ejemplo n.º 1
0
 /// <summary>
 /// Removes an element at the begining of the deque
 /// </summary>
 /// <returns>The element at the beginning of the deque</returns>
 public T RemoveFirst()
 {
     return(_circularList.RemoveFirst());
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Removes and returns the item at the head of the queue
        /// </summary>
        /// <returns>The item that is removed from the head of the queue</returns>
        public T Dequeue()
        {
            TurboContract.Requires(this.Count > 0, conditionString: "this.Count > 0");

            return(_circularList.RemoveFirst());
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Removes and returns the item at the head of the queue
        /// </summary>
        /// <returns>The item that is removed from the head of the queue</returns>
        public T Dequeue()
        {
            Contract.Requires(this.Count > 0);

            return(_circularList.RemoveFirst());
        }