{"published":"2012-10-04 16:09:34","height":"190","title":"C++ \u3067 Maybe\u30e2\u30ca\u30c9\u3092\u66f8\u3044\u3066\u307f\u305f","url":"https://osyo-manga.hatenadiary.org/entry/20121004/1349334574","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20121004%2F1349334574\" title=\"C++ \u3067 Maybe\u30e2\u30ca\u30c9\u3092\u66f8\u3044\u3066\u307f\u305f - C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","width":"100%","blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","categories":["C++"],"blog_url":"https://osyo-manga.hatenadiary.org/","description":"C++ \u3067 Maybe\u30e2\u30ca\u30c9\u3092\u66f8\u3044\u3066\u307f\u305f\u3089\u610f\u5916\u3068\u9762\u767d\u304b\u3063\u305f\u306e\u3067\u899a\u66f8\u3002 \u307e\u3041\u3053\u306e\u624b\u306e\u30cd\u30bf\u306f\u305f\u304f\u3055\u3093\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3002 \u3042\u3093\u307e\u308a Haskell \u529b\u306f\u9ad8\u304f\u306a\u3044\u306e\u3067\u3056\u3063\u304f\u308a\u3068\u3057\u305f\u5b9f\u88c5\u3067\u3059\u3002 [\u5b9f\u88c5\u3059\u308b\u4e3b\u306a\u6a5f\u80fd] maybe nothing return bind(>>=) \u4eca\u56de\u306f\u3053\u3053\u3089\u8fba\u306e\u6a5f\u80fd\u3092 C++ \u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002 [maybe \u3068 return] maybe \u81ea\u4f53\u306f\u540c\u7b49\u306e\u6a5f\u80fd\u3092\u6301\u3064 Boost.Optional \u3067\u4ee3\u7528\u3002 nothing \u3082 boost::none \u3067\u3059\u306d\u3002 template<typename T> using maybe = boost::optional<T>; co\u2026","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/osyo-manga/","author_name":"osyo-manga","provider_url":"https://hatena.blog","image_url":null}