{"provider_url":"https://hatena.blog","type":"rich","description":"std::initializer_list \u306e\u8ffd\u52a0\u306b\u3068\u3082\u306a\u3044 \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3068\u521d\u671f\u5316\u5b50\u30ea\u30b9\u30c8\u306e\u521d\u671f\u5316\u69cb\u6587\u304c\u4e00\u69d8\u306b\u306a\u308b \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30af\u30e9\u30b9\u304c\u3042\u3063\u305f\u5834\u5408 class hoge { int x_; int y_; public: hoge(int x, int y) : x_(x), y_(y) {} }; \u4ee5\u4e0b\u306e2\u884c\u306f\u540c\u3058\u610f\u5473\u306b\u306a\u308b hoge h(3, 4); hoge h{3, 4}; \u5f15\u6570 void foo(const hoge&){} foo({3, 4}); \u623b\u308a\u5024 hoge something() { return {3, 4}; } std::initializer_list \u3092\u5f15\u6570\u306b\u2026","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","categories":["C++"],"image_url":null,"provider_name":"Hatena Blog","url":"https://faithandbrave.hateblo.jp/entry/20080625/1214384049","blog_url":"https://faithandbrave.hateblo.jp/","version":"1.0","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","author_name":"faith_and_brave","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080625%2F1214384049\" title=\" C++0x Uniform initialization - 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":"2008-06-25 17:54:09","title":" C++0x Uniform initialization","width":"100%","height":"190"}