腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(778)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
is_
nothrow
_xxxable vs.is_
nothrow
/copy
我注意到标准库中有这样三种类型的特征:std::is_
nothrow
_copy_constructible //(2)(2)(3)的含义从他们的名字中是明确的,但(1)实际上是什么意思呢?同样,我们可以用trivially代替
nothrow
,用assignable代替constructib
浏览 0
提问于2016-06-18
得票数 0
回答已采纳
1
回答
noexcept、__declspec(
nothrow
)、throw()、__attribute__(
nothrow
)
使用noexcept、__declspec(
nothrow
)、throw()、__attribute__(
nothrow
)等修饰符的目的是什么?
浏览 1
修改于2013-11-24
得票数 4
1
回答
默认析构函数
nothrow
specifier for 'virtual Y::~Y()'显然,gcc-4.7.1认为X的默认析构函数为
nothrow
,但Y的默认析构函数不是
nothrow
。
浏览 0
提问于2012-07-16
得票数 33
回答已采纳
1
回答
boost::is_
nothrow
_move_constructible实现
这无法编译,因为boost::variant显然试图复制-构造它内部的unordered_map -基于boost::is_
nothrow
_move_constructible特性的结果(实际上是boost这揭示了boost::is_
nothrow
_move_constructible的定义为struct is_
nothrow
_move_constructible_impice_or< ::boost::has_trivial_move_constru
浏览 2
提问于2014-11-12
得票数 2
回答已采纳
1
回答
std::is_
nothrow
_copy_constructible的实现是什么?
; std::cout:is_
nothrow
_copy_constructible<C>::value << std::endl; std::cout << "D: " << std::is_
nothrow
_copy_con
浏览 1
提问于2017-12-10
得票数 2
回答已采纳
1
回答
std::is_
nothrow
_destructible的奇怪行为
尽管我认为它不应该这样做:struct Tmp ~Tmp() noexcept( std::is_
nothrow
_destructibleTmp< Foo > xx; Bar() {}static_assert( std::is_
nothrow
_destructible&
浏览 0
提问于2015-10-06
得票数 5
1
回答
lambda函数是
nothrow
_move_assignable吗?
#include <type_traits>void test_
nothrow
_move_assignable(T&&) { << std::is_
nothrow
_move_assignable<T>::value}int main() { test_<e
浏览 2
提问于2016-10-24
得票数 4
回答已采纳
1
回答
如何实施新的(std::
nothrow
)?
本质上,我想实现类似于new (std::
nothrow
)的东西。 printf("this: %p\n", this);}; Test* t = new (std::
nothrow
那么,如何在重载的new (std::
nothrow
)操作符中实现new的功能呢?
浏览 3
提问于2013-03-08
得票数 9
回答已采纳
1
回答
没有,除了可变is_
nothrow
_constructible_v
Ts> : test(std::forwardTs> : test(std::
浏览 21
提问于2019-04-11
得票数 2
1
回答
继承构造函数时的std::is_
nothrow
_constructible
A { C (T) noexcept {} 和用法:std::cout << std::is_
nothrow
_constructible<B, int>::value << std::endl; std::
浏览 0
提问于2016-12-20
得票数 6
回答已采纳
1
回答
具有成员函数的std::is_
nothrow
_invocable
#include <type_traits> void f(int){} // How to use is_
nothrow
_invocable_vstatic_assert(std::is_
nothrow
_invocable_v< &C::f, int >); }
浏览 3
修改于2017-06-12
得票数 4
回答已采纳
1
回答
向量、移动语义、
nothrow
和g++ 4.7
因此,正如我从上面的链接中理解的那样,我创建了move构造函数
nothrow
,但它仍然只复制。但是,如果我将复制构造函数设为
nothrow
,则只有moves发生。有人能解释这一点吗?namespace std; int v;S(){} //S(
nothrow
浏览 0
修改于2012-04-20
得票数 5
回答已采纳
9
回答
什么时候应该使用std::
nothrow
?
std::
nothrow
的理想用法是什么
浏览 4
修改于2012-06-07
得票数 31
1
回答
带有CUDA新功能的
Nothrow
如果没有类似于(
nothrow
)的东西,是否有一种方法可以继续执行内核,即使在内存分配失败的情况下也是如此? 谢谢!
浏览 2
提问于2013-01-27
得票数 3
回答已采纳
1
回答
在返回引用的函数上使用__declspec(
nothrow
)
我想在我的一些返回对象引用的成员函数上应用__declspec(
nothrow
)。UInt32 nValue ) return ( SetValue ( nValue ) );我需要在函数的返回类型后面添加它的,如下所示:如果我遵循这一点,我的大多数函数都可以很好地与__declspec(
nothrow
)配合使用。但是,当我对上面的成员函数(或任何其他返回C
浏览 0
修改于2012-02-10
得票数 2
回答已采纳
3
回答
运算符new with
nothrow
option仍引发异常
有这样的代码: for(;;){ } std::cin.get();} 但是,这个程序仍然会抛出std::bac_alloc异常,尽管new是用std::
nothrow
浏览 3
修改于2012-06-07
得票数 6
回答已采纳
1
回答
带保护构造函数的VS2013 has_
nothrow
_constructor
对于VS2013,has_
nothrow
_constructor和has_
nothrow
_default_constructor更严格地遵循这个标准。) throw(){} private: static_assert((std::has_
nothrow
_constructor< BlockCopyableClass >::value), "BlockCopyableBase classes must have
浏览 1
修改于2016-02-11
得票数 0
1
回答
std::make_shared和std::make_unique是否有"
nothrow
“版本?
对于新的操作符,我们有std::
nothrow
版本:对于std::make_shared还是std::make_unique
浏览 15
修改于2019-07-18
得票数 14
2
回答
::std::has_
nothrow
_default_constructor被移动/改变了吗?
::std::has_
nothrow
_default_constructor被移动/改变了吗?home/kfeng/src/mirror-lib/include/mirror/type_traits/is_default_constructible.hpp:31:2: error: ‘has_
nothrow
_default_constructor: /home/kfeng/src/mirror-lib/include/m
浏览 8
修改于2015-04-09
得票数 3
回答已采纳
1
回答
c++11中虚类的
nothrow
构造
获取以下代码片段: static_assert(std::is_
nothrow
_default_constructible
浏览 0
修改于2013-02-25
得票数 3
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券