c++boost::assign使ã£ã¦ã¿ã - Faith and Brave - C++ã§éã¼ã ã«ã¦ boost::assign ã®ä½¿ãæ¹ãç´¹ä»ããã¦ããã #include #include #include #include using namespace std; using namespace boost::assign; int main() { vectorint> v; v += 3, 1, 4; // ï¼ï¼ï¼ for(unsigned int i = 0; i return 0; } ãããããããªãããããâ¦ï¼æ®éãªã v.push_back(3); v.push_back(1); v.push_back(4); ã¨æ¸ããªãããªããªãã¨ããã v += 3, 1, 4; ã¨æ¸ãããèªåã® C++ ã®å¸¸èããããã¨ã³ã£ãããããããªæ¸ãæ¹ãªã®ã ãã©ãC++ ã§ã¯
{{#tags}}- {{label}}
{{/tags}}