10 struct PLess : std::binary_function<T, T, bool> {
11 bool operator()(
const T& x,
const T& y)
const {
return *x < *y; }
14 class TestBed :
public std::set < TestItem * , PLess< TestItem * > > {
16 TestBed(){ std::cout<<
"Test begin"<<std::endl;}
17 ~TestBed(){ std::cout<<
"Test end\nresults:\n"<<*
this<<std::endl;}
bool operator()(const T &x, const T &y) const
friend std::ostream & operator<<(std::ostream &os, const TestBed &bed)