{"version":"1.0","width":"100%","url":"https://secret-garden.hatenablog.com/entry/2019/12/20/230705","blog_title":"Secret Garden(Instrumental)","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2019%2F12%2F20%2F230705\" title=\"\u3010\u4e00\u4eba C++20 Advent Calendar 2019\u3011std::result_of \u304c\u524a\u9664\u3055\u308c\u308b\u301020\u65e5\u76ee\u3011 - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C++","C++20"],"type":"rich","published":"2019-12-20 23:07:05","provider_name":"Hatena Blog","title":"\u3010\u4e00\u4eba C++20 Advent Calendar 2019\u3011std::result_of \u304c\u524a\u9664\u3055\u308c\u308b\u301020\u65e5\u76ee\u3011","image_url":null,"author_name":"osyo-manga","blog_url":"https://secret-garden.hatenablog.com/","description":"\u4e00\u4eba C++20 Advent Calendar 2019 20\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 std::result_of \u304c\u524a\u9664\u3055\u308c\u308b C++11 \u3067\u8ffd\u52a0\u3055\u308c\u3001C++17 \u3067\u975e\u63a8\u5968\u306b\u306a\u3063\u3066\u3044\u305f std::result_of \u304c\u524a\u9664\u3055\u308c\u307e\u3059\u3002 \u5909\u308f\u308a\u306b\u4eca\u5f8c\u306f std::invoke_result \u3092\u4f7f\u7528\u3059\u308b\u4e8b\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002 #include <type_traits> struct plus{ template<typename T> auto operator ()(T a, T b) { return a + b; } }; int main(){ // C++20 \u3067\u306f\u30a8\u30e9\u30fc static_\u2026","author_url":"https://blog.hatena.ne.jp/osyo-manga/","provider_url":"https://hatena.blog"}