{"url":"https://yohhoy.hatenadiary.jp/entry/20200820/p1","author_name":"yohhoy","width":"100%","height":"190","type":"rich","description":"\u975e\u578b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u578b\u306b\u306fauto\u307e\u305f\u306fdecltype(auto)\u3044\u305a\u308c\u3082\u5229\u7528\u3067\u304d\u308b\u3002\u7d20\u76f4\u306bauto\u3092\u4f7f\u3046\u3079\u304d\u3002\u672c\u8a18\u4e8b\u306e\u5185\u5bb9\u306fStackOverflow\u3067\u898b\u3064\u3051\u305f\u8cea\u554f\u3068\u56de\u7b54\u306b\u57fa\u3065\u304f\u3002 template <auto N> struct S { /*...*/ }; // \u307e\u305f\u306f template <decltype(auto) N> struct S { /*...*/ }; S<42> obj; C++17 10.1.7.4/p1, p5, 17.1/p4\u3088\u308a\u4e00\u90e8\u5f15\u7528\uff08\u4e0b\u7dda\u90e8\u306f\u5f37\u8abf\uff09\u3002 1 The auto and decltype(auto) type-specifiers a\u2026","blog_title":"yohhoy\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","published":"2020-08-20 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20200820%2Fp1\" title=\"decltype(auto) as non-type template-parameter - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/yohhoy/","title":"decltype(auto) as non-type template-parameter","image_url":null,"version":"1.0","provider_name":"Hatena Blog","blog_url":"https://yohhoy.hatenadiary.jp/","categories":["C++"]}