
Boost 应用
文章平均质量分 62
crond123
这个作者很懒,什么都没留下…
展开
-
Boost学习笔记-tokenizer
在实际应用中,字符串分解相当重要,在以前一直没有找到简单的字符串分解的库,一般直接使用MFC的CString进行分词,虽然lex也可以完成这些工作,但是有种杀鸡用牛刀的味道。最近学习boost,发现boost的tokenizer可以完成这些功能,并且使用起来也相当简单。在boost文档中的一些用例都比较短,也而且也不难扩展,Tokenizer 类 template , class Iterat原创 2009-02-25 11:03:00 · 6719 阅读 · 1 评论 -
Boost学习笔记-bind
boost::bind 是标准函数 std::bind1st 和 std::bind2nd 的泛化,它可以将任何的函数,成员函数,函数对象,绑定成为一个无元的函数对象。而且bind对函数的支持远强于标准函数中的bind.定义一个函数int fun1(int a,int b){ std::cout return a+b;}我们可以使用这种方法调用函数 boost::bind(fun原创 2009-02-25 16:59:00 · 1092 阅读 · 0 评论 -
asio学习笔记-简单的http客户端
// asion_simple.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include #include #include using boost::asio::ip::tcp;int main(int ar原创 2009-02-26 16:48:00 · 4710 阅读 · 3 评论