How to port the NCollection_Set into OCC6.8.0

Hello, everybody

I would like to ask a question about the OCC collections.
OCC6.8.0 drops off the class "NCollection_Set". I would like to know if there is a similar class to allow me to use in OCC6.8.0.
For example, in OCC6.7.1, I have code: NCollection_Set ais_set.
Everytime I add a component to the set, I don't need to check the duplication. The set takes care of checking by itself.
It is a equivalent to C++ std::set.
I know I can implement the class by myself. But I want to know if there is one substitute available in OCC6.8.0 already. So I don't need to spend extra time on it.
Thanks!
-Fan

Forum supervisor's picture

Dear Fan,
We recommend you to use hash maps (NCollection_Map) instead of NCollection_Set.

Best regards
FSR.

sigmawave's picture

Dear Forum supervisor

Thank you for your reply.
I was thinking that I use the NCollection_Map instead. But because I don't need store a pair. The only thing I need is the key. It would be a waste for NCollection_Map.
Anyway, it is a solution. I will make the change.

Thanks!

-Fan