public static RawIterator <T> Find <T>(this IRawContainer <T> source, T item, IEqualityComparer <T> comparer) where T : unmanaged { RawIterator <T> cur = source.begin(); RawIterator <T> end = source.end(); for (; cur != end; cur++) { if (comparer.Equals(*cur.Value, item)) { return(cur); } } return(default);
public RawIteratorEnumerator(IRawContainer <T> container) { current = start = container.begin(); end = container.end(); }