{"type":"rich","provider_url":"https://hatena.blog","width":"100%","author_name":"faith_and_brave","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","published":"2008-03-12 18:05:42","url":"https://faithandbrave.hateblo.jp/entry/20080312/1205312742","blog_url":"https://faithandbrave.hateblo.jp/","image_url":null,"version":"1.0","description":"#include <iostream> #include <vector> #include <shand/foreach.hpp> #include <boost/assign/list_of.hpp> using namespace std; using namespace boost::assign; int main() { vector<int> v = list_of(3)(1)(4); // \uff01\uff01\uff01 foreach (int value, v) cout << value << endl; // 3, 1, 4 return 0; } std::list\u306b\u3082\u4f7f\u3048\u308b list<in\u2026","title":" boost::assign::list_of\u3092\u4f7f\u3063\u3066\u307f\u305f","height":"190","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080312%2F1205312742\" title=\" boost::assign::list_of\u3092\u4f7f\u3063\u3066\u307f\u305f - 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>","categories":["C++"],"provider_name":"Hatena Blog"}