Using Boost unordered_map

前端 未结 2 1435
长情又很酷
长情又很酷 2020-12-19 18:52

I want to include boost::unordered_map in my project without downloading the whole Boost package. How can I do that?

2条回答
  •  感动是毒
    2020-12-19 19:33

    Use bcp: http://www.boost.org/doc/libs/1_52_0/tools/bcp/doc/html/index.html

    cd $BOOST_DIR
    bcp unordered_map /tmp/TEST
    

    Now /tmp/TEST contains only the things required for unordered_map, in my case 15Mb (as opposed to 734Mb for the full boost library)

提交回复
热议问题