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