Boost
C++ã®ãã³ãã¬ã¼ãã¡ã¿ããã°ã©ãã³ã°ã©ã¤ãã©ãªãBoost.MPLãã«ã¤ãã¦åå¼·ä¸ï¼æ°ãããã®ãåå¼·ããæã¯ã¨ããããããã使ã£ã¦Brainf*ckã®ã¤ã³ã¿ããªã¿ãä½ãã®ãå¦ç¿æ³ã®å®ç³ãªã®ã§ï¼æ©éBoost.MPLã使ã£ã¦Brainf*ckã®ã¤ã³ã¿ããªã¿ãæ¸ããï¼ ã½ã¼ã¹ ã³ã³â¦
ã©ã®åãtypedefãã¦ã©ããBoost.Foreachã«æ¸¡ãã°ããã®ãããåãããªãã£ãã®ã§ã¡ã¢ï¼ #include <iostream> #include <boost/foreach.hpp> #include <boost/bimap/bimap.hpp> #include <boost/bimap/multiset_of.hpp> using namespace std; struct name {}; struct place {}; int main(int argc, char const* argv[]) { using namespace boost</boost/bimap/multiset_of.hpp></boost/bimap/bimap.hpp></boost/foreach.hpp></iostream>â¦
ãããã¼ boost/assign.hpp ã§ããã㨠ã³ã³ããã®åæåã»è¦ç´ 追å ãæ軽ã«ã§ããï¼ ä½¿ç¨ä¾ åæºå #include <boost/assign.hpp> using namespace boost::assign; vector ç°¡åï¼ // åæå vector<int> v = list_of(1)(2)(3); // æ«å°¾ã¸ã®è¦ç´ ã®è¿½å (push_back) v += 4, 5, 6; // v</int></boost/assign.hpp>â¦
ãããã¼ boost/foreach.hpp ã§ããã㨠C++ã§ä»ã®è¨èªã«ãããããªforeachã£ã½ããã¨ãã§ããããã«ãªãï¼ ä½¿ç¨ä¾ BOOST_FOREACHã使ã£ã¦ã³ã³ããã®åè¦ç´ ã«ã¢ã¯ã»ã¹ããå ´åã®ä¾ï¼ std::vector<int> v; v.push_back(1); v.push_back(2); v.push_back(3); BOOST_</int>â¦
ãããã¡ãã£ã¨çºãã¦ã¿ã¦æä½éææ¡ãã¦ãããã¨æã£ããã®ãåæï¼æ¢ã«ææ¡ãã¦ãããã®ãå«ãï¼ æåå format lexical_cast regex, xpressive spirit string_algo tokenizer ã¹ãã¼ããã¤ã³ã¿ shared_ptr weak_ptr å ¥åºå filesystem ã¹ã¬ãã thread æ°â¦