{"height":"190","image_url":null,"published":"2016-06-02 00:00:00","author_name":"osyo-manga","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F06%2F02%2F000000\" title=\"C/C++ \u306e __COUNTER__ \u30de\u30af\u30ed - 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>","url":"https://secret-garden.hatenablog.com/entry/2016/06/02/000000","blog_title":"Secret Garden(Instrumental)","author_url":"https://blog.hatena.ne.jp/osyo-manga/","categories":["C++"],"blog_url":"https://secret-garden.hatenablog.com/","description":"__COUNTER__ \u306f 0 \u304b\u3089\u59cb\u307e\u308a\u547c\u3073\u51fa\u3059\u5ea6\u306b +1 \u3055\u308c\u308b\u30de\u30af\u30ed\u3067\u3059\u3002 [\u30b3\u30fc\u30c9] #include <iostream> int main(){ ary auto = { __COUNTER__, __COUNTER__, __COUNTER__, __COUNTER__ }; for(auto&& it : ary){ std::cout << it << std::endl; } return 0; } /* output: 0 1 2 3 */ \u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3067\u30e6\u30cb\u30fc\u30af\u306a\u6587\u5b57\u5217\u3092\u751f\u6210\u3059\u308b\u5834\u5408\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u3089\u3057\u3044\u3002 \u305f\u3060\u3057\u3001\u975e\u6a19\u6e96\u6a5f\u80fd\u306a\u306e\u3067\u3001\u4f7f\u7528\u3057\u305f\u3044\u5834\u5408\u306f\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u4f9d\u5b58\u3059\u2026","version":"1.0","provider_name":"Hatena Blog","type":"rich","width":"100%","provider_url":"https://hatena.blog","title":"C/C++ \u306e __COUNTER__ \u30de\u30af\u30ed"}