What does '->' do?

Sep 9, 2015 at 6:39am
Quick question:

What does -> do?
eg.
1
2
3
4
 if (tool[i]-> rc != 0)
        {
            ....     
        }


Thanks,
(Search on here brings up nothing!)
Last edited on Sep 9, 2015 at 6:40am
Sep 9, 2015 at 6:46am
It is pointer member accesss. foo->bar is equivalent to (*foo).bar
http://en.cppreference.com/w/cpp/language/operator_member_access
Topic archived. No new replies allowed.