Hey, I was just playing around with a deque of class pointers, and I was wondering if there was some cool C++ way of writing the following more easily:
1 2 3 4 5 6 7
for (deque <Foo*> ::const_iterator
fooey = foos.begin();
fooey != foos.end();
++fooey)
{
(*fooey)->quux(); // Is there some cool way to do double-dereferences?
}