forked from boostorg/concept_check
12 lines
206 B
C++
12 lines
206 B
C++
#include <list>
|
|
#include <algorithm>
|
|
|
|
struct foo {
|
|
bool operator<(const foo&) const { return false; }
|
|
};
|
|
int main(int, char*[]) {
|
|
std::list<foo> v;
|
|
std::stable_sort(v.begin(), v.end());
|
|
return 0;
|
|
}
|