I agree that the last few replies to this thread are C++ and not SDK related.
The main topic lead to the
HashSet, and for completeness of future reference I thought to mention the compiling issues.
I didn't know about the difference being the iterator initialization. To me it all looked the same.
Just for completeness, I never really realized the following two implementations had a complete different internal behaviour:
// does compile maxon::HashSet<Int32>::Iterator it = hashset.Begin(); // does not compile maxon::HashSet<Int32>::Iterator it; it = hashset.Begin();
I will set the topic as solved, since
HashSet is the way to go, and I learned something new about iterator initialization in the process.