{"url":"https://secret-garden.hatenablog.com/entry/2018/01/06/180514","author_url":"https://blog.hatena.ne.jp/osyo-manga/","author_name":"osyo-manga","blog_url":"https://secret-garden.hatenablog.com/","provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","published":"2018-01-06 18:05:14","type":"rich","blog_title":"Secret Garden(Instrumental)","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2018%2F01%2F06%2F180514\" title=\"C++ \u3067 each_split - 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++"],"image_url":null,"height":"190","title":"C++ \u3067 each_split","description":"C++ \u3067 split \u3068\u3044\u3046\u3068\u300e\u623b\u308a\u5024\u578b\u3068\u304b\u3069\u3046\u3059\u308b\u306e\u300f\u307f\u305f\u3044\u306a\u554f\u984c\u304c\u3042\u308b\u3093\u3067\u3059\u304c\u3001\u300e\u305d\u308c\u306a\u3089\u623b\u308a\u5024\u3067\u306f\u306a\u304f\u3066 each \u307f\u305f\u3044\u306b\u95a2\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6e21\u305b\u3070\u3044\u3044\u3058\u3083\u3093\u300f\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3084\u3063\u3066\u307f\u305f\u3002 #include <iostream> #include <sstream> #include <string> auto each_split = [](auto src, char del, auto f){ std::stringstream input(src); std::string output; while(std::getline(input, output, del)){ f(ou\u2026"}