question about HOWTO use std::set in non-trival way...

Jeffrey Holle jeff.holle@verizon.net
Sat Sep 11 00:37:00 GMT 2004


Found my own answer by looking at the implementation of set in 
bits/stl_set.h.
set has the approbriate constructor, so the answer is:
   Edges edges(ltSubGraph(graph_)).
A very thoughtful implementation!

Eljay Love-Jensen wrote:
> Hi Jeff,
> 
> Why does your ltSubgraph comparison function object class have a copy 
> constructor?
> 
> See section 18.4.2 of Stroustrup's C++ Programming Language (3rd or 
> special edition), for what a less functor object looks like.
> 
> HTH,
> --Eljay
> 
> 



More information about the Gcc-help mailing list