前几天版上讨论,翻到的一篇stack问答上的结论:
And if you ask about "std::unique_ptr" than visit this talk "CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”
https://www.youtube.com/watch?v=rHIkrotSwccIts just not true, that unique_ptr is 100% cost free.
【 在 lambdai 的大作中提到: 】
: 没有memory的overhead,但是有cpu的cost
: There are no zero cost abstractions
:
https://youtu.be/rHIkrotSwcc: ...................
--
FROM 140.206.195.*