Нанчан Бүх Нийтийн Хацарт Бутлуур Sp
std::set_intersection cppreference . Constructs a sorted range beginning at d_first consisting of elements that are found in both sorted ranges [first1, last1) and [first2, last2).If some element is found m times in [first1, last1) and n times in [first2, last2), the first std:: min (m, n) elements will be copied from the first range to the destination range.