B
brian
Hello all,
First of all I am aware of the fact that my question is STL related.
However the comp.std.c++ group is moderated and I have no idea how long
it will take to be answered there. So, please, hold your fire.
And now the question:
Is there any special reason (performance, etc.) for using "(*i).second"
instead of "i->second"?
The example follows:
typedef std::map<...> table;
extern table t;
table::iterator i;
for (i=t.begin(); i!=t.end(); i++)
{
param = (*i).second;
...
}
Thanks.
First of all I am aware of the fact that my question is STL related.
However the comp.std.c++ group is moderated and I have no idea how long
it will take to be answered there. So, please, hold your fire.
And now the question:
Is there any special reason (performance, etc.) for using "(*i).second"
instead of "i->second"?
The example follows:
typedef std::map<...> table;
extern table t;
table::iterator i;
for (i=t.begin(); i!=t.end(); i++)
{
param = (*i).second;
...
}
Thanks.