$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: yinglcs2_at_[hidden]
Date: 2006-02-22 11:58:27
I have a for loop which pass the map.second to a
function, like this:
class A;
typedef map<int, A*> MyMap;
sortY(A& a);
for (MyMap::iterator iter = map.begin(); iter !=
map.end(); ++iter) {
A *a = (*iter).second;
sortY(*a);
}
how can I translate the above for() loop into for_each
and use boost lambda?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com