what is the simple way to loop through a mpl::map?
typedef mpl::string<'Curr'> key1;
typedef mpl::string<'Brid'> key2;
typedef mpl::map<pair<key1,int>, p开发者_如何学运维air<key2,char> > m;
How can I loop through m ?
Why don't you use mpl::for_each
? Something like:
mpl::for_each<
m,
typename mpl::lambda<
mpl::key_type<
m,
mpl::_1
>
>
>( do_some() );
精彩评论