bjam --show-libraries可查看所有必须编译才能使用的库
boost库大部分组件(近90%)不需要编译一,直接包含头文件即可
bjam stage --without-python --toolset=msvc-10.0 --build-type=complete --stagedir="D:\boost_1_56_0\bin\vc10" link=static runtime-link=shared threading=multi debug release
timer可以用来程序计数运行时间
progress_disaply用来显示进度条
内存管理:
scoped_ptr智能指针:
scoped_ptr<string> sp(new string("text"));
scoped_ptr不允许拷贝复制、不能做容器的元素,可以swap
字符串与文本处理
lexical_cast 用于数值与字符串之间转换
int x = lexical_cast<int>("100");
double x = lexical_cast<double>("1.234");
string str = lexical_cast<string>(563);