std::tx_exception
Defined in header <stdexcept> | ? | ? |
---|---|---|
template< class T > class tx_exception : public std::runtime_error; | ? | (TM TS) |
定义可用于取消和回滚由关键字发起的原子事务的异常类型。atomic_cancel
...
如果T
不是TriviallyCopyable
,专门的程序std::tx_exception<T>
是畸形的。
成员函数
性病:TX[医]例外:TX[医]例外
explicit tx_exception( T value ) transaction_safe; | (1) | ? |
---|---|---|
tx_exception( T value, const std::string& what_arg ) transaction_safe; | (2) | ? |
tx_exception( T value, const char* what_arg ) transaction_safe; | (3) | ? |
构造异常对象what_arg
作为解释性字符串,可以通过what()
和value
作为可以通过get()
...
参数
value | - | payload object |
---|---|---|
what_arg | - | explanatory string |
例外
%280%29
性病:TX[医]例外:GET
T get() const transaction_safe; | ? | ? |
---|
返回异常对象持有的有效负载对象。
例外
%280%29
继承自STD::运行时[医]误差
继承自STD:例外
成员函数
(destructor) virtual | destructs the exception object (virtual public member function of std::exception) |
---|---|
what virtual | returns an explanatory string (virtual public member function of std::exception) |
? cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com