示例#1
0
 public void PushAndClear(ref ValueLinkedQueue <T> queue)
 {
     if (queue.IsNotEmpty)
     {
         queue.PeekLast().Next = _first;
         _first = queue.Peek();
         queue.Clear();
     }
 }
示例#2
0
 public T Peek()
 {
     return(_queue.Peek().Value);
 }