上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 84 下一页
摘要: A Visual Explanation of SQL Joins I thought Ligaya Turmelle's post on SQL joins was a great primer for novice developers. Since SQL joins appear to be 阅读全文
posted @ 2017-05-02 14:48 穆穆兔兔 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 更好的方式 C++11中提供了操作多线程的高层次特性。 std::packaged_task 包装的是一个异步操作,相当与外包任务,好比我大阿里把电话客服外包给某某公司。 std::future 提供了一个访问异步操作结果的机制,这个是底层机制,在packaged_task和promise内部都有f 阅读全文
posted @ 2017-04-20 11:50 穆穆兔兔 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-04-20 11:32 穆穆兔兔 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 转载 http://eli.thegreenplace.net/2016/the-promises-and-challenges-of-stdasync-task-based-parallelism-in-c11/ One of the biggest and most impactful chan 阅读全文
posted @ 2017-04-19 19:43 穆穆兔兔 阅读(650) 评论(0) 推荐(0) 编辑
摘要: https://linuxaria.com/article/how-to-make-dmesg-timestamp-human-readable perl脚本 阅读全文
posted @ 2017-03-15 09:21 穆穆兔兔 阅读(1253) 评论(0) 推荐(0) 编辑
摘要: http://en.cppreference.com/w/cpp/language/cast_operator 阅读全文
posted @ 2017-03-13 18:06 穆穆兔兔 阅读(213) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/cbscan/archive/2012/01/10/2318482.html http://blog.csdn.net/fcryuuhou/article/details/8568194 std::move是一个用于提示优化的函数,过去的c++98中,由 阅读全文
posted @ 2017-03-03 14:39 穆穆兔兔 阅读(398) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/xkfz007/archive/2012/07/21/2602110.html 之前有文章介绍过临时对象和返回值优化RVO方面的问题。见此处。 在C++中,返回对象这一点经常被诟病,因为这个地方的效率比较低,需要进行很多的操作,生成一些临时对象,如果对象 阅读全文
posted @ 2017-03-02 20:19 穆穆兔兔 阅读(633) 评论(0) 推荐(0) 编辑
摘要: you can get the pointer of the method, but it has to be called with an object If you need to have non-object pointer and you want to use object then y 阅读全文
posted @ 2017-03-02 11:43 穆穆兔兔 阅读(310) 评论(0) 推荐(0) 编辑
摘要: g++ future.cpp -std=c++1y -g -pthread .输出: 可见,当函数 print_int1(int&),且std::ref(value1) 时,是传递的引用。 #include <functional> #include <iostream> void f(int& n 阅读全文
posted @ 2017-02-22 10:03 穆穆兔兔 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 84 下一页