Boost
lambda_tea
这个作者很懒,什么都没留下…
展开
-
boost::function demo
#include #include /******************************************/ class Demo { public: void showDemo(int nDemo); }; void Demo::showDemo(int nDemo) { printf("%d\n",nDemo); } void TestMemberFunction转载 2011-12-31 16:19:07 · 270 阅读 · 0 评论 -
boost::phoenix::operator
Member pointer operator a->*member_object_pointer a->*member_function_pointer #include #include #include class Demo { public: void func(int); }; void Demo::func(int n) { printf("%s,result=转载 2012-01-06 10:27:59 · 290 阅读 · 0 评论 -
boost_CURRENT_FUNCTION_
#ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED #define BOOST_CURRENT_FUNCTION_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #end转载 2012-03-02 17:04:43 · 535 阅读 · 0 评论 -
boost生成随机数
[code="c++"] /*输入参数:随机数位数*/ /*输出参数:随机数*/ boost::mt19937 m_oBoostRandomSeed_; GetRandomNumber(int nDigits) { double dRangeMin = pow((double)10,nDigits); double dRangeMax = pow((double)10,nDigi...2011-07-04 17:19:51 · 462 阅读 · 0 评论 -
boost_foreach
1 #include <string> 2 #include <iostream> 3 #include <boost/foreach.hpp> 4 5 #define foreach BOOST_FOREACH 6 7 8 int main() 9 { 10 std::string h...原创 2011-07-15 14:12:52 · 116 阅读 · 0 评论 -
boost::split
#include "boost/algorithm/string.hpp" #include <stdio.h> #include <string> #include <vector> using namespace std; using namespace boost; int main(int argc,char* argv[]) { ...原创 2011-07-18 09:55:11 · 112 阅读 · 0 评论 -
boost::string
<boost/algorithm/string.hpp> <boost/algorithm/string/case_conv.hpp> <boost/algorithm/string/classification.hpp> <boost/algorithm/string/compare.hpp> <boost/algorithm/...原创 2011-07-18 10:20:47 · 113 阅读 · 0 评论 -
boost::phoenix3
#include <vector> #include <algorithm> #include <iostream> #include <boost/phoenix/core.hpp> #include <boost/phoenix/operator.hpp> int main() { using boo...原创 2011-07-26 10:10:15 · 164 阅读 · 0 评论