search for: s1elty

Displaying 3 results from an estimated 3 matches for "s1elty".

Did you mean: elty
2004 Oct 12
3
[LLVMdev] set_intersect and Visual C compiler
..., with help from Paolo and have started to work on fixing some of the problems. One thing that the compiler absolutely does not understand is the definition of set_intersect in include/llvm/ADT/SetOperations.h, and I am having a hard time understanding it myself. template <template<class S1ElTy> class S1Ty, class ETy, class S2Ty> void set_intersect(S1Ty<ETy> &S1, const S2Ty &S2) { for (typename S1Ty<ETy>::iterator I = S1.begin(); I != S1.end();) { const ETy &E = *I; ++I; if (!S2.count(E)) S1.erase(E); // Erase element if not in S2 } }...
2004 Oct 12
0
[LLVMdev] set_intersect and Visual C compiler
...t, I'm glad we're all working together on this! :) > One thing that the compiler absolutely does not understand is the > definition of set_intersect in include/llvm/ADT/SetOperations.h, and I > am having a hard time understanding it myself. > > template <template<class S1ElTy> class S1Ty, class ETy, class S2Ty> > void set_intersect(S1Ty<ETy> &S1, const S2Ty &S2) { > for (typename S1Ty<ETy>::iterator I = S1.begin(); I != S1.end();) { > const ETy &E = *I; > ++I; > if (!S2.count(E)) S1.erase(E); // Erase elem...
2004 Oct 12
5
[LLVMdev] set_intersect and Visual C compiler
...working together on this! :) > > > One thing that the compiler absolutely does not understand is the > > definition of set_intersect in include/llvm/ADT/SetOperations.h, and I > > am having a hard time understanding it myself. > > > > template <template<class S1ElTy> class S1Ty, class ETy, class S2Ty> > > void set_intersect(S1Ty<ETy> &S1, const S2Ty &S2) { > > for (typename S1Ty<ETy>::iterator I = S1.begin(); I != S1.end();) { > > const ETy &E = *I; > > ++I; > > if (!S2.count(E)) S1....