开发者交流平台
开发者交流平台

通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。

bj
登录
  • 友情链接
站内
smart-pointers

smart-pointers

go

同一个 shared_ptr 用于多个对象?

英文: Same shared_ptr for multiple objects? 问题 以下是代码的中文翻译部分: #include <memory> #include <iost...
huangapple 2023年5月13日130评论c++ smart-pointers
go

如何在静态情况下检查 shared_ptr 类型是否为 ?

英文: How to check if a shared_ptr type is of <type> statically? 问题 I want to create a template ...
huangapple 2023年5月10日136评论c++ templates
go

How to write constructors for implicit conversions from instances of a templated class C<Derived> to instances of C<Base>

英文: How to write constructors for implicit conversions from instances of a templated class C<Deri...
huangapple 2023年4月19日124评论c++ smart-pointers
go

如何编写适用于std::shared_ptr和std::unique_ptr的模板工厂函数。

英文: How to write templated factory function for both std::shared_ptr and std::unique_ptr 问题 以下是翻译好的部...
huangapple 2023年4月7日129评论c++ templates
go

如何在运行时习惯性地存储 unique_ptr 或 shared_ptr?

英文: How to idiomatically store a unique_ptr or shared_ptr at runtime? 问题 以下是您要求的代码部分的中文翻译: // 我有一个 `...
huangapple 2023年4月4日141评论c++ unique-ptr
go

如何继承所有 unique_ptr<T[]> 构造函数?

英文: How can I inherit all the unique_ptr<T[]> constructors? 问题 以下是您提供的代码的翻译: 我正在尝试继承 unique_pt...
huangapple 2023年3月8日193评论c++ templates
go

C++:unique_ptr指向的类持有对所有者的引用,这是不好的吗?

英文: C++: Class pointed to by unique_ptr holding a reference to owner, is this bad? 问题 这种模式是否有问题,或者是否...
huangapple 2023年2月24日139评论c++ reference
go

Should I use an std::vector or a std::unique_ptr here?

英文: Should I use an std::vector or a std::unique_ptr here? 问题 我有一个名为Mesh的类,我希望它对于多种不同的“类似数组”的结构(如ver...
huangapple 2023年2月9日132评论arrays c++
2

文章导航

1 2
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客17081538

热门标签

java reactjs c# css flutter html go spring spring-boot python typescript android pandas r json javascript c++ arrays node.js sql

悟已往之不谏,知来者之可追!

今日
00%
已00小时
本周
00%
已过00天
本月
00%
已过00天
今年
00%
已是00月

Copyright ©  开发者交流平台 版权所有.

闽 ICP 备 2022019110 号 - 1
  • 开发者交流平台

    本页二维码