
Boost程序库完全开发指南:时间与内存
timer timer 毫秒级别的精度。 <boost/timer.hpp> using namespace boost; // 开始计时 timer t; // 可度量的最大时间,小时为单位 t.ela...
timer timer 毫秒级别的精度。 <boost/timer.hpp> using namespace boost; // 开始计时 timer t; // 可度量的最大时间,小时为单位 t.ela...
noncopyable 实现一个禁止拷贝的类。 实现 class noncopyable { protected: noncopyable() = default; ~noncopyable() = default;...
array dynamic_bitset test:第n位是否为1 any:如果存在1,返回true none:不存在1,返回true count:容器中所有值为1的元素的数量 set:置全部或特定的位置值为1或0 ...
函数与回调 ref 包装对象的引用,在传递参数时消除对象拷贝的代价,或者将不可拷贝的对象变为可以拷贝。 reference_wrapper boost::cref boost::ref unwrap_ref int ...