move语义(p3)
例子 “一路move进去” “省了copy的开销” “rule of 7”
move语义(p3)
c++14 lamdba表达式一个code小片段分析 -- from folly::NamedThreadFactory
return std::thread(
[func = std::move(func), name = std::move(name)]() mutable {
folly::setThreadName(name);
func();
});
folly库note(r0)- Executor
如何打印出enum的文本值