{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkrustf.hateblo.jp%2Fentry%2F20120909%2F1347202200\" title=\" \u3042\u308b\u5909\u6570\u304c\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u305b\u308b\u304b\u3067 SFINAE - krustf \u306e\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"krustf \u306e\u96d1\u8a18","width":"100%","author_url":"https://blog.hatena.ne.jp/krustf/","version":"1.0","author_name":"krustf","title":" \u3042\u308b\u5909\u6570\u304c\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u305b\u308b\u304b\u3067 SFINAE","published":"2012-09-09 23:50:00","type":"rich","provider_name":"Hatena Blog","description":"auto func(...) -> decltype(...) \u3092\u4f7f\u3048\u3070, \u6e21\u3055\u308c\u305f\u5909\u6570\u304c\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u304b\u6301\u305f\u306a\u3044\u304b\u3067 SFINAE \u3068\u304b\u3067\u304d\u308b. #include <iostream> struct memory { std::string to_string() const { return \"is memory.\"; } }; struct device { std::string to_string() const { return \"is device.\"; } }; template<class T> auto get_string(T const& t) -> decltype(\u2026","url":"https://krustf.hateblo.jp/entry/20120909/1347202200","image_url":null,"blog_url":"https://krustf.hateblo.jp/","provider_url":"https://hatena.blog","height":"190","categories":["C++"]}