{"published":"2026-03-08 00:00:00","type":"rich","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20260308%2Fp1\" title=\"\u5197\u9577\u306atypename\u30ad\u30fc\u30ef\u30fc\u30c9 - 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/","categories":["C++"],"version":"1.0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC++\u306b\u304a\u3044\u3066\u578b(type)\u540d\u3092\u8a18\u8ff0\u3059\u308b\u3068\u304d\u3001C++11\u4ee5\u964d\u3067\u306f\u4fee\u98fe\u540d(qualified name)\u306b\u9650\u3063\u3066\u5197\u9577\u306atypename\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u3082\u826f\u3044\u3002 #include <cstddef> using std::size_t; struct S { using type = int; }; typename int x0; // NG typename size_t n0; // NG typename std::size_t n1; // OK typename ::size_t n2; // OK typename S::type v1; // OK C++03\u2026","provider_name":"Hatena Blog","title":"\u5197\u9577\u306atypename\u30ad\u30fc\u30ef\u30fc\u30c9","blog_title":"yohhoy\u306e\u65e5\u8a18","height":"190","blog_url":"https://yohhoy.hatenadiary.jp/","provider_url":"https://hatena.blog","url":"https://yohhoy.hatenadiary.jp/entry/20260308/p1","author_name":"yohhoy","width":"100%"}