{"blog_url":"https://yohhoy.hatenadiary.jp/","url":"https://yohhoy.hatenadiary.jp/entry/20190925/p1","title":"same_as\u30b3\u30f3\u30bb\u30d7\u30c8\u3068Symmetric Subsumption Idiom","image_url":null,"author_name":"yohhoy","width":"100%","categories":["C++","C++2a"],"type":"rich","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20190925%2Fp1\" title=\"same_as\u30b3\u30f3\u30bb\u30d7\u30c8\u3068Symmetric Subsumption Idiom - 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>","height":"190","published":"2019-09-25 00:00:00","author_url":"https://blog.hatena.ne.jp/yohhoy/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_title":"yohhoy\u306e\u65e5\u8a18","description":"C++2a(C++20)\u30e9\u30a4\u30d6\u30e9\u30ea\u63d0\u4f9b\u306e\u6a19\u6e96\u30b3\u30f3\u30bb\u30d7\u30c8std::same_as\u3001\u304a\u3088\u3073\u30b3\u30f3\u30bb\u30d7\u30c8\u5b9a\u7fa9\u306b\u304a\u3051\u308b\u5bfe\u79f0\u5305\u6442\u30a4\u30c7\u30a3\u30aa\u30e0(Symmetric Subsumption Idiom)\u306b\u3064\u3044\u3066\u30e1\u30e2\u3002\u5236\u7d04\u5f0fstd::same_as<X, Y>\u3068\u5236\u7d04\u5f0fstd::same_as<Y, X>\u306f\u5bfe\u79f0\u95a2\u4fc2\u3001\u3064\u307e\u308a\u4e92\u3044\u306b\u4e00\u65b9\u304c\u4ed6\u65b9\u3092\u5305\u6442\u3059\u308b(subsume)\u95a2\u4fc2\u306b\u3042\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u30b3\u30f3\u30bb\u30d7\u30c8\u3078\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u6307\u5b9a\u9806\u304c\u4e00\u81f4\u3057\u3066\u3044\u306a\u304f\u3068\u3082\u3001\u5236\u7d04\u5f0f\u3092\u7528\u3044\u305f\u95a2\u6570\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u89e3\u6c7a\u306e\u534a\u9806\u5e8f\u95a2\u4fc2\u3092\u8868\u73fe\u3067\u304d\u308b\u3002 // C++2a(C++20) #include <concepts> template <typena\u2026"}