¡@

Home 

c++ Programming Glossary: set1

Why does my STL code run so slowly when I have the debugger/IDE attached?

http://stackoverflow.com/questions/1060337/why-does-my-stl-code-run-so-slowly-when-i-have-the-debugger-ide-attached

using namespace std int runIntersectionTestAlgo set int set1 set int set2 set int intersection Create 100 000 values for.. int set2 set int intersection Create 100 000 values for set1 for int i 0 i 100000 i int value 1000000000 i set1.insert value.. for set1 for int i 0 i 100000 i int value 1000000000 i set1.insert value Create 1 000 values for set2 for int i 0 i 1000..

Fast intersection of sets: C++ vs C#

http://stackoverflow.com/questions/1060648/fast-intersection-of-sets-c-vs-c-sharp

namespace tr1 int runIntersectionTest2 const vector int set1 const vector int set2 hash_map int int theMap map int int theMap.. map int int theMap unordered_set int theSet theSet.insert set1.begin set1.end int intersectionSize 0 vector int const_iterator.. theMap unordered_set int theSet theSet.insert set1.begin set1.end int intersectionSize 0 vector int const_iterator set2_end..