{"width":"100%","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","height":"190","image_url":null,"categories":["C++"],"blog_url":"https://faithandbrave.hateblo.jp/","author_name":"faith_and_brave","title":" Boost.Phoenix V3 - 2\u3064\u4ee5\u4e0a\u306e\u5f0f\u3092\u66f8\u304f","type":"rich","description":"\u30ab\u30f3\u30de\u6f14\u7b97\u5b50\u3067\u3001\u8907\u6570\u306e\u5f0f\u304c\u66f8\u3051\u307e\u3059\u3002 #include <vector> #include <boost/range/algorithm/for_each.hpp> #include <boost/phoenix.hpp> int main() { using boost::phoenix::arg_names::_1; namespace phx = boost::phoenix; const std::vector<int> v = {1, 2, 3}; int sum = 0; boost::for_each(v, ( phx::ref(sum) += _1, std::cout << \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20110404%2F1301926199\" title=\" Boost.Phoenix V3 - 2\u3064\u4ee5\u4e0a\u306e\u5f0f\u3092\u66f8\u304f - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2011-04-04 23:09:59","version":"1.0","url":"https://faithandbrave.hateblo.jp/entry/20110404/1301926199","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046"}