Effective-modern-c++
ruihuank
这个作者很懒,什么都没留下…
展开
-
Effective Modern c++ 17. the rules govering the special member functions
The C++11 rules govering the special member funcions are thus:Default constructor: Same rules as c++98. Generated only if the class contains no user-declared constructors.Destructor: Essentially same r原创 2018-01-02 09:33:14 · 239 阅读 · 0 评论 -
Effective Mordern C++ 26. Avoid overloading on universal references.
avoid overloading on universal references原创 2018-01-12 22:52:44 · 175 阅读 · 0 评论 -
Effective Modern C++ 32. Use init capture to move objects into closures.
use init capture to move objects into closures原创 2018-01-17 22:13:11 · 262 阅读 · 0 评论 -
Effective Modern C++ 34. Prefer lambdas to std::bind
Prefer lambdas to std::bind原创 2018-01-26 11:01:07 · 348 阅读 · 0 评论 -
Effective Mordern C++ 33. forward
struct X {}; void inner(const X&) {cout "inner(const X&)" << endl;} void inner(X&&) {cout "inner(X&&)" << endl;} templatetypename T> void outer(T&& t) {inner(forward(t));} templatetypename原创 2018-01-25 21:07:51 · 187 阅读 · 0 评论 -
Effective Modern C++ 36. Specify std::launch::async if asynchronicity is essential
specify std::launch::async if asynchronicity is essential原创 2018-01-26 20:11:00 · 175 阅读 · 0 评论