gpt4 book ai didi

c++ - 在 C++03 中模拟 std::unique_ptr

转载 作者:搜寻专家 更新时间:2023-10-31 01:33:39 26 4
gpt4 key购买 nike

我对如何在 C++03 中模拟 C++11 的 std::unique_ptr 很感兴趣。我的理解是@HowardHinnant 写了一个很好的实现,可以在 http://home.roadrunner.com/~hinnant/unique_ptr03.html 找到。 .不幸的是,尽管似乎每个讨论该主题的站点都链接到该页面,但该页面(显然)已不存在。 (至少,我无法得到它。)还有其他地方可以找到霍华德的代码吗?

最佳答案

代码似乎已移至 this Git repository .

关于c++ - 在 C++03 中模拟 std::unique_ptr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41007712/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com