Код: Выделить всё
#include
#include
#include
#include
using namespace std;
template
unsigned
__sort31(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c)
{
unsigned __r = 0;
if (!__c(*__y, *__x)) // if x
Подробнее здесь: [url]https://stackoverflow.com/questions/79818075/quadratic-behaviour-examples-generating-of-libc-sort-implementation[/url]
Мобильная версия