SortedSet<T>.Overlaps(IEnumerable<T>) 메서드

정의

현재 SortedSet<T> 개체와 지정된 컬렉션이 공통 요소를 공유하는지 여부를 확인합니다.

public:
 virtual bool Overlaps(System::Collections::Generic::IEnumerable<T> ^ other);
public bool Overlaps (System.Collections.Generic.IEnumerable<T> other);
abstract member Overlaps : seq<'T> -> bool
override this.Overlaps : seq<'T> -> bool
Public Function Overlaps (other As IEnumerable(Of T)) As Boolean

매개 변수

other
IEnumerable<T>

현재 SortedSet<T> 개체와 비교할 컬렉션입니다.

반환

SortedSet<T> 개체와 other가 최소한 하나의 요소를 공유하면 true이고, 그렇지 않으면 false입니다.

구현

예외

other이(가) null인 경우

설명

other 모든 중복 요소는 무시됩니다.

이 메서드는 연산 O(n log m) 입니다. 여기서 mCount 이고 n 는 의 other요소 수입니다.

적용 대상