It is needed to determine the number of elements in the intersection. Without waiting for the queue to finish, how would I be able to return an iterator pointing to end of intersection?