{"categories":["boost","PreProcessor","\u307e\u3068\u3081"],"author_name":"nekko1119","width":"100%","author_url":"https://blog.hatena.ne.jp/nekko1119/","version":"1.0","url":"https://nekko1119.hatenablog.com/entry/2013/08/15/212127","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekko1119.hatenablog.com%2Fentry%2F2013%2F08%2F15%2F212127\" title=\"BOOST_PP_ITERATE - C++\u3068\u8272\u3005\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2013-08-15 21:21:27","image_url":null,"blog_url":"https://nekko1119.hatenablog.com/","title":"BOOST_PP_ITERATE","height":"190","provider_url":"https://hatena.blog","blog_title":"C++\u3068\u8272\u3005","description":"\u4ee5\u524d\u306e\u8a18\u4e8b\u3067BOOST_PP_REPEAT\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002 BOOST_PP_REPEAT\u306f\u4f3c\u305f\u3088\u3046\u306a\u8a18\u8ff0\u3092\u7e70\u308a\u8fd4\u3059\u969b\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u69d8\u3067\u3059(\u3053\u306e\u30b3\u30fc\u30c9\u81ea\u4f53\u306b\u610f\u5473\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u2026) #include <boost/preprocessor/cat.hpp> #include <boost/preprocessor/repeat.hpp> #define VALUE(z, n, d) const int BOOST_PP_CAT(VALUE_, n) = n; BOOST_PP_REPEAT(4, VALUE, _) \u5c55\u958b\u5f8c const int VALUE_0 = 0; con\u2026"}