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> 개체와 비교할 컬렉션입니다.

반품

true 개체가 하나 이상의 공통 요소를 공유하면 SortedSet<T> 이고 other , false그렇지 않으면 .

구현

예외

othernull입니다.

설명

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

이 메서드는 O(n log m) 작업의 위치 mCountn 요소 수입니다 other.

적용 대상