<boost/algorithm/string.hpp> <boost/algorithm/string/case_conv.hpp> <boost/algorithm/string/classification.hpp> <boost/algorithm/string/compare.hpp> <boost/algorithm/string/concept.hpp> <boost/algorithm/string/constants.hpp> <boost/algorithm/string/erase.hpp> <boost/algorithm/string/find.hpp> <boost/algorithm/string/find_format.hpp> <boost/algorithm/string/find_iterator.hpp> <boost/algorithm/string/finder.hpp> <boost/algorithm/string/formatter.hpp> <boost/algorithm/string/iter_find.hpp> <boost/algorithm/string/join.hpp> <boost/algorithm/string/predicate.hpp> <boost/algorithm/string/regex.hpp> <boost/algorithm/string/regex_find_format.hpp> <boost/algorithm/string/replace.hpp> <boost/algorithm/string/sequence_traits.hpp> <boost/algorithm/string/split.hpp> <boost/algorithm/string/std_containers_traits.hpp> <boost/algorithm/string/trim.hpp> <boost/algorithm/string_regex.hpp>
发表评论
-
boost::phoenix3
2011-07-26 10:10 795#include <vector> #in ... -
loki::typelist
2011-07-21 10:56 1036loki的typelist用来形成class的list 依赖 ... -
vector&&map
2011-07-18 10:09 720#include <algorithm> ... -
获取当前时间字符串
2011-07-18 10:05 899//get current time string c ... -
boost::split
2011-07-18 09:55 1521#include "boost/algorithm/ ... -
boost_foreach
2011-07-15 14:12 7601 #include <string> ... -
boost生成随机数
2011-07-04 17:19 2648/*输入参数:随机数位数*/ /*输出参数:随机数*/ ... -
一个C++实现的md5源码
2009-10-23 12:50 670使用代码 string c,key; cin &g ... -
C/C++一些笔试题_1
2009-10-14 00:58 70Adding... -
一些模板函数
2009-05-05 09:31 107template <class Bi> voi ... -
BTrees
2009-03-14 14:56 176* btrees.h */ /* * 平衡多路树的 ... -
C指针的一些例子
2009-03-13 10:58 405C的指针是比较复杂的,留一些例子做为参考 f(int ( ... -
tree.cpp
2009-03-05 16:33 101#include<stdio.h> #inc ... -
PEDUMP.C
2009-02-17 00:15 574//-------------------- // P ...
相关推荐
boost::asio::serial下6个工程演示多种串口读取写入方式方法,包含simple,with_timeout,async,callback,qt_integration,stream 等多个工程演示多种方式读取,写入串口,char,string ,buffer[]等多种数据格式。
代码如下:#include <string> #include #include <boost> #include using namespace std; int main() { boost::array<int> array_temp = {{12, 8, 45, 23, 9}}; sort(array_temp.begin(), ...
使用c++实现boost::any类 any类可以存放任意类型数据,如: void test_any() { any any_a1(123); int a2 = any_cast(any_a1); int* p_a2 = any_cast(&any_a1); std::cout *p_a2="*p_a2<<std::endl; any any_b1...
C++实现的表达式解析,本程序是利用强大的boost::spirit库实现的。这个东西实在是太强大了。 程序运行结果如下: -----------表达式解析--------- 已定义的函数有:PI,SIN,COS,TAN,,ABS,EXP,LOGN,POW,SQRT,FORMAT,...
利用boost的format 头文件 #include <boost> boost::format f = boost::format("%.2f %s %d") % 1.234 %"123" ; std::string s = f.str(); 等同于 boost::format f = boost::format("%.2f %s %d"); f % 1.234 %...
博文《Linux下libserial库对接串口传感器的实例一》的配套程序,有定长,定时接受传感器的二个例子和一个...解析数据用的是BOOST::string。解析完后使用BOOST::signal把数据串接起来。 工程使用codeblocks打开。
boost :: multiprecision :: cpp_dec_float_50 完毕 完毕 乌里 std :: string 完毕 base64Binary std :: string 完毕 立即的 boost :: locale :: date_time 完毕 日期 boost :: locale :: date_time 完毕 约会...
标准json字符串编码使用unicode,即boost 提供的 中拼接起来的字符串采用unicode字符集编码,而很多网页采用编码为utf8。 这个库字符编码采用系统编码,系统采用utf8字符集的话拼接起来字符串就是ut8了;另外在博客...
这样带来一个问题,原来所有的接口中的boost::shared_ptr<std::string>数据类型,全部换成了std::string引用,升级到2.3的朋友要注意修改之前重写虚函数的签名,如果不改,则重写肯定不生效,变成了新增加虚函数了...
这样带来一个问题,原来所有的接口中的boost::shared_ptr<std::string>数据类型,全部换成了std::string引用,升级到2.3的朋友要注意修改之前重写虚函数的签名,如果不改,则重写肯定不生效,变成了新增加虚函数了...
你好,世界Hello World 演示测试项目...void fun2 ( std::string str ) { std::cout << " Fun2 : " << str> f( boost::bind( &CB::fun2, this, _1 ) );callback_["A"] = f ; boost::get< boost> >(callbac
} std::string info_extend; int number; }; 2、std::auto_ptr std::auto_ptr 属于 STL,当然在 namespace std 中,包含头⽂件 #include<memory> 便可以使⽤。std::auto_ptr 能够⽅便的管理单个堆 内存对象。 我们...
由于项目需要,要使用boost,所以在网上找了一些例子帮助理解,其中遇到很多问题,再次总结记录一下。... std::stringstream ss; void save() { boost::archive::text_oarchive oa(ss); boost::array<
2.1.1 boost.algorithm.string是什么? 23 2.1.2 相关 23 2.1.3 boost.range导论 23 2.1.4 boost.regex导论 23 2.1.5 boost.algorithm.string的DNA 24 2.2 boost字符串算法解密 24 2.2.1 修剪(trim.hpp) 24 2.2.2 ...
美女使用Boost.Beast和Boost.ASIO的C ++ 17中的HTTP / Websocket库。... 它旨在拥有一个直观的API,合理的默认值和出色的性能。...# include < string>int main (){ // init the server with local address
2.1.5 boost.algorithm.string的DNA 24 2.2 boost字符串算法解密 24 2.2.1 修剪(trim.hpp) 24 2.2.2 转换(case_conv.hpp) 24 2.2.3 判断式、断言函数(predicate.hpp)【Predicates】 24 2.2.4 查找 24 2.2.5 删除...
json.hpp-使用Boost.Spirit的C ++ JSON解析 json.hpp是使用一个小(小于100行代码的)C ++ JSON解析库用于解析,并为数据... std::string json_string{ " { \" names \" : [ " " { \" name \" : \" Chris \" }, "
#include <string> #include #include #include #include "spamtrain.h" #define MAX(a,b) (a>=b)?a:b; #define MIN(a,b) (a)?a:b; using namespace std; using namespace boost::filesystem; using ...
助推汉娜 您的元编程标准库总览# include < boost># include < cassert># include < string>namespace hana = boost::hana;using namespace hana ::literals ;struct Fish { std::string name; };struct Cat { std::...
boost基本入门使用示例,简单,一看就懂! 部分代码如下: int a = lexical_cast("123"); double b = lexical_cast("123.0123456789"); string s0 = lexical_cast<string>(a);