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

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

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

shared-ptr

go

移动`std::shared_ptr`的开销是多少?

英文: overhead for moving std::shared_ptr? 问题 这是一个C++代码片段。Func1生成一个共享对象,该对象直接移动到Func2中。我们认为Func3中不应该有额...
huangapple 2023年8月8日156评论c++ move
go

如何初始化一个共享指针成员?

英文: How should I initialise a shared-pointer member? 问题 传递引用: class MyClass { std::shared_ptr<std...
huangapple 2023年7月27日138评论c++ c++11
go

Is it valid to static_cast 'weak_ptr<SomeThing>*' to 'void*' then back to 'weak_ptr<void>*' , or do I need to use static_pointer_cast?

英文: Is it valid to static_cast 'weak_ptr<SomeThing>*' to 'void*' then back to ...
huangapple 2023年6月29日126评论c++ lua
go

std::shared_ptr<T[]> 与 std::array<T, size>/std::vector<T>

英文: std::shared_ptr<T[]> VS std::array<T, size>/std::vector<T> 问题 在C++中,shared poi...
huangapple 2023年6月16日135评论c++ c++17
go

C++ API 设计 shared_ptr 和调用函数

英文: C++ API design shared_ptr and calling into functions 问题 I have similar C++ code to this: struct ...
huangapple 2023年6月13日150评论api-design c++
go

无法使用赋值来构造一个对象,使用派生的 shared_ptr。

英文: can't use assignment to construct an object using derived shared_ptr 问题 这是代码。我认为它显示了我的问题。那么,...
huangapple 2023年5月25日138评论c++ shared-ptr
go

What's the most effecient way to pass a copy of std::shared_ptr into a C function/API/thread that takes only a const void* parameter?

英文: What's the most effecient way to pass a copy of std::shared_ptr into a C function/API/thread...
huangapple 2023年5月22日144评论c++ multithreading
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日137评论c++ templates
go

c++ 14(VS 2015)中带有受保护继承的shared_ptr – 无适用的用户定义转换。

英文: c++ 14 (VS 2015) shared_ptr with protected inheritance - no suitable user defined conversion 问题 ...
huangapple 2023年5月7日132评论c++ c++14

文章导航

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

热门标签

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

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

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

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

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

    本页二维码