TEST_LIBCPP_ASSERT_FAILURE(std::partial_sort_copy(copy.begin(),copy.end(),results.begin(),results.end(),checked_predicate),"not a valid strict-weak ordering");
}
{
std::vector<std::size_t*>copy;
for(autoconst&e:elements)
copy.push_back(e.get());
std::nth_element(copy.begin(),copy.end(),copy.end(),checked_predicate);// doesn't go OOB even with invalid comparator