CSet:GetIndex
The GetIndex method returns the index of the specified member.
index = CSet:GetIndex( member ) |
This method matches the member value and returns it's index in the set. If the set contains numbers, there exists the possibility of the same value being present more than once in the set. The first match found is the one whose index is returned. If the set contains memory objects, then this is usually not a problem.