腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(9)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
3
回答
这里有使用std::unique_ptr的好处吗?
auto tempT = std::make_unique<T>();虽然从参数列表中调用“新”一词已经非常清楚地表明了这一点,但
exception-safe
浏览 3
提问于2021-09-10
得票数 4
2
回答
删除函数中的对象:丑陋、易出错、效率低下,而且通常不例外安全。
error-prone, and inefficient X* p = new X; delete p; // not
exception-safe
浏览 1
修改于2020-06-20
得票数 0
回答已采纳
1
回答
是否可以在正常代码路径中抛出异常,从而消除可能的程序员错误?
internally when it should stop // user does not have to check the return value but they need to write
exception-safe
浏览 0
修改于2014-05-04
得票数 1
2
回答
用析构函数处理失败与catch (.){ fix();抛出;}
operator new(sizeof(T) * n));for (i = 0; i < n; ++i) new (&p[i]) T(1, 2, 3); // Not
exception-safe
浏览 3
修改于2014-03-12
得票数 2
1
回答
Lambda在转让所有权时按价值捕获
std::function<void()> act = [temp = move(resCarrier), description]() mutable {// hopefully
exception-safe
浏览 1
提问于2021-05-23
得票数 0
回答已采纳
1
回答
在c#中读取二进制未知大小文件
Compilation failed: 2 error(s), 0 warningsstatic void Main(string[] args) // using provides
exception-safe
浏览 2
修改于2014-03-10
得票数 0
回答已采纳
1
回答
扑克牌项目最新进展
include "Card.h"#include <algorithm> { m_playable.push_back(card);{ // still not
exception-safe
浏览 0
修改于2013-12-23
得票数 4
回答已采纳
1
回答
实现移动构造函数的C++20 VisualStudio2022编译器优化设置
operator[](size_t index) return const_cast<T&>(std::as_const(*this)[index]); // Template for
exception-safe
浏览 1
修改于2022-07-10
得票数 0
回答已采纳
1
回答
作为多态类成员的智能指针
CFoo(const CBase<T> & refBase, int nParam) :m_ptrBase(refBase.clone()), // Is this initialization
exception-safe
浏览 1
修改于2011-11-09
得票数 4
回答已采纳
领券