{"published":"2020-07-15 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20200715%2Fp1\" title=\"\u30e9\u30e0\u30c0\u5f0f\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\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>","version":"1.0","provider_name":"Hatena Blog","url":"https://yohhoy.hatenadiary.jp/entry/20200715/p1","provider_url":"https://hatena.blog","blog_title":"yohhoy\u306e\u65e5\u8a18","image_url":null,"width":"100%","author_url":"https://blog.hatena.ne.jp/yohhoy/","height":"190","blog_url":"https://yohhoy.hatenadiary.jp/","title":"\u30e9\u30e0\u30c0\u5f0f\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9","author_name":"yohhoy","categories":["C++","C++2a"],"type":"rich","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC++\u306b\u304a\u3044\u3066\u3001\u30e9\u30e0\u30c0\u5f0f\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\uff08\u3082\u3069\u304d\uff09\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3002 // C++17 template <typename... Ts> struct overloaded : Ts... { // \u57fa\u5e95\u30af\u30e9\u30b9\uff08\u30e9\u30e0\u30c0\u5f0f\u306e\u30af\u30ed\u30fc\u30b8\u30e3\u30af\u30e9\u30b9\uff09\u304c\u63d0\u4f9b\u3059\u308b // operator()\u7fa4\u3092overloaded\u30af\u30e9\u30b9\u81ea\u8eab\u304b\u3089\u516c\u958b\u3059\u308b using Ts::operator()...; }; // \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5f15\u6570Ts...\u306e\u63a8\u8ad6\u30ac\u30a4\u30c9\u5ba3\u8a00 template <typename... Ts> overloaded(Ts...) -> overloaded<Ts...>; // \u6587\u5b57\u5217(co\u2026"}