public static bool IsOneElementRange <T>(InputIterator <T> first, InputIterator <T> last)
 {
     first = IteratorUtil.Clone(first);
     first.MoveNext();
     return(first.Equals(last));
 }
예제 #2
0
 public static RandomAccessIterator <T> AdvanceCopy <T>(RandomAccessIterator <T> iter, int distance)
 {
     iter = IteratorUtil.Clone(iter);
     Advance(iter, distance);
     return(iter);
 }
예제 #3
0
 public static ListIterator <T> AdvanceCopy <T>(ListIterator <T> iter, int distance)
 {
     iter = IteratorUtil.Clone(iter);
     Advance(iter, distance);
     return(iter);
 }
예제 #4
0
 public static BidirectionalIterator <T> AdvanceCopy <T>(BidirectionalIterator <T> iter, int distance)
 {
     iter = IteratorUtil.Clone(iter);
     Advance(iter, distance);
     return(iter);
 }