
9 Jun
2011
9 Jun
'11
6:30 a.m.
Hi. I have vector of boost array: typedef boost::array<char, 10> array10; typedef std::vector<array10> vector_of_array10; vector_of_array10 v; v.resize(10); Now I initialize it using for statement: for(vector_of_array10::iterator i = v.begin(); i != v.end(); ++i) (*i)[0] = '\0'; How can I do the same initialization using lambda expression and for_each? In advance thank you very much for the tip.