|
constexpr | DUnexpected (const DUnexpected &)=default |
| Dtk::Core::DUnexpected的默认拷贝构造函数
|
|
constexpr | DUnexpected (DUnexpected &&)=default |
| Dtk::Core::DUnexpected的默认移动构造函数
|
|
template<typename Er = E, typename std::enable_if<!std::is_same< typename remove_cvref< Er >::type, DUnexpected >::value and !std::is_same< typename remove_cvref< Er >::type, emplace_tag >::value and std::is_constructible< E, Er >::value, bool >::type = true> |
constexpr | DUnexpected (Er &&_e) noexcept(std::is_nothrow_constructible< E, Er >::value) |
| 使用类型E直接初始化一个Dtk::Core::DUnexpected对象
|
|
template<typename... Args> |
constexpr | DUnexpected (emplace_tag, Args &&...args) noexcept(std::is_nothrow_constructible< E, Args... >::value) |
| 直接从参数构造出一个包含错误类型为E的对象的Dtk::Core::DUnexpected对象
|
|
template<typename U , typename... Args> |
constexpr | DUnexpected (emplace_tag, std::initializer_list< U > _li, Args &&...args) noexcept(std::is_nothrow_constructible< E, std::initializer_list< U > &, Args... >::value) |
| 从参数和初始化列表构造出一个包含错误类型为E的对象的Dtk::Core::DUnexpected对象
|
|
DUnexpected & | operator= (const DUnexpected &)=default |
| Dtk::Core::DUnexpected的默认拷贝赋值运算符
|
|
DUnexpected & | operator= (DUnexpected &&)=default |
| Dtk::Core::DUnexpected的默认移动赋值运算符
|
|
constexpr const E & | error () const &noexcept |
| 获取Dtk::Core::DUnexpected持有的不期待值
|
|
E & | error () &noexcept |
| 获取Dtk::Core::DUnexpected持有的不期待值
|
|
constexpr const E && | error () const &&noexcept |
| 获取Dtk::Core::DUnexpected持有的不期待值
|
|
E && | error () &&noexcept |
| 获取Dtk::Core::DUnexpected持有的不期待值
|
|
void | swap (DUnexpected &_other) |
| 交换两个Dtk::Core::DUnexpected的值
|
|
template<typename E = DError>
class Dtk::Core::DUnexpected< E >
类模板Dtk::Core::DUnexpected代表一个Dtk::Core::DExpected中存储的不期待的值
- 模板参数
-
E | 不期待的值的类型,该类型不能是非对象类型,数组类型,Dtk::Core::DUnexpected的特化类型或有cv限定符的类型 |