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

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

bj
登录
  • 友情链接
站内
unique-ptr

unique-ptr

go

“使用 unique_ptr 的 reset 方法:无效的指针释放()”

英文: use method reset of unique_prt:free(): invalid pointer 问题 当我使用reset重新绑定unique_ptr时,发生了一些问题,但是使用s...
huangapple 2023年5月10日132评论c++ segmentation-fault
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日194评论c++ templates
go

虚拟方法被unique_ptr移动语义覆盖的问题

英文: virtual method overridden issue with unique_ptr move semantics 问题 在下面的代码片段中,似乎虚拟方法在适配器对象中没有被覆盖,而...
huangapple 2023年3月7日148评论c++ inheritance
go

从参数包中捕获类型并创建一个包含它们的unique_ptr数组。

英文: Capturing types from parameter pack and creating an array of unique_ptr from them 问题 如何编写这段代码? t...
huangapple 2023年2月27日155评论c++ c++17
go

unique_ptr在使用基类时的析构函数序列

英文: sequence of destructors when using unique_ptr to base class 问题 我正在尝试使用std::unique_ptr和类继承(即多态性)。...
huangapple 2023年2月27日138评论c++ polymorphism
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

std::unique_ptr custom deleters seem to need a pointer argument — is there an alternative that can take a non-pointer argument?

英文: std::unique_ptr custom deleters seem to need a pointer argument -- is there an alternative that ...
huangapple 2023年2月19日140评论c++ stl
go

unique_ptr在构造函数中为什么需要完整的类型?

英文: Why unique_ptr requires complete type in constructor? 问题 从Is std::unique_ptr<T> required t...
huangapple 2023年2月10日132评论c++ c++11
2

文章导航

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

热门标签

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

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

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

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

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

    本页二维码