{"provider_url":"https://hatena.blog","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","published":"2009-05-14 18:18:38","title":" \u53ef\u5909\u5f15\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30ea\u30b9\u30c8\u51e6\u7406 - sum","url":"https://faithandbrave.hateblo.jp/entry/20090514/1242292718","blog_url":"https://faithandbrave.hateblo.jp/","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20090514%2F1242292718\" title=\" \u53ef\u5909\u5f15\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30ea\u30b9\u30c8\u51e6\u7406 - sum - 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>","description":"sum\u306f\u3001\u6574\u6570\u5024\u306e\u53ef\u5909\u5f15\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30d1\u30c3\u30af\u3092\u5408\u8a08\u3059\u308b\u30e1\u30bf\u95a2\u6570\u3067\u3059\u3002 template <int... Args> struct sum; template <int Head, int... Tail> struct sum<Head, Tail...> { static const int value = Head + sum<Tail...>::value; }; template <> struct sum<> { static const int value = 0; }; sum<1, 2, 3, 4, 5>::value \u2192 15","image_url":null,"width":"100%","categories":["C++"],"height":"190","author_name":"faith_and_brave"}