Boost logo

Boost Users :

Subject: Re: [Boost-users] [Range] Help with syntax
From: jean Davy (jean.davy.77_at_[hidden])
Date: 2018-10-18 15:25:58


Something like that ?

> struct classcomp {
> bool operator() ( const S & & lhs, const S& rhs) const
> {return lhs.i( )< rhs.i( );}

};

set<int, classcomp> s(v.begin(), v.end());



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net