Boost
清海风缘
这个作者很懒,什么都没留下…
展开
-
Boost编译库下载地址 for VS
下载地址: https://sourceforge.net/projects/boost/files/boost-binaries/原创 2016-10-09 08:54:12 · 836 阅读 · 0 评论 -
BOOST库介绍,安装
BOOST库介绍,安装转载 2016-10-09 08:56:52 · 249 阅读 · 0 评论 -
boost库是如何知道程序中所需要的lib的?
boost库是如何知道程序中所需要的lib的?转载 2016-10-09 08:58:33 · 586 阅读 · 0 评论 -
【Boost】boost::timer库用法与实例
转: 【Boost】boost::timer库用法与实例// boost::timer库, 用于性能测试等需要计时的任务。 // boost::timer不适合高精度的时间测量任务。 它的精度依赖于操作系统或编译器,难以做到跨平台。 // boost::timer也不适合大跨度时间段的测量,可提供的最大跨度只有几百个小时,如果需要以天、月甚至年作为时间的单位则不能使用timer。转载 2016-10-18 08:30:03 · 763 阅读 · 0 评论 -
用boost::format来格式化字符串
转: 用boost::format来格式化字符串在字符串处理中少不了格式化字符串,C++中传统的格式化函数是C语言的sprintf,但它一个很大的问题就是不安全。因此,在stl中引入了stringstream来实现安全格式化,但是stringstream却远不如sprintf来得直观。例如,对如如下代码: char text[]="hello";转载 2016-10-28 13:17:01 · 3622 阅读 · 0 评论 -
boost::format给std::string插上翅膀
#include #include #include #include int main(){ std::string str1(" hello world1 "); boost::to_upper(str1); printf("to_upper(str1): %s\n", str1.c_str()); boost::trim(str1); printf("trim(str1原创 2016-12-14 15:22:34 · 2385 阅读 · 0 评论 -
boost的timer计时器类源码——简单、干脆
class timer{public: timer() { _start_time = std::clock(); } // postcondition: elapsed()==0 // timer( const timer& src ); // post: elapsed()==src.elapsed() // ~timer(){} // t原创 2016-12-14 15:39:31 · 346 阅读 · 0 评论