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());