need help with std::set::iterator

Okay, what I have is a std::set< string > defined that holds a group of strings (unknown mathematical variables) that are the different names of the columns in a matrix.

What I need to do is after finding an occurance of a variable in an equation is store it in the appropriate place in the matrix.

What I am currently doing is

Code:

` set< string >::iterator variablePos = variables.find( variableString );`

but I am at a dead end in the fact that I have no idea how to get the position of the iterator, is it as simple as

Code:

` variablePos.position();`

or is there something that I am completely missing (have not done much work with c++ iterators before).

Also, am I going about this the best way or is there some really easy function that will do it all for me.

Thanks,