plcopen 0.22.0
载入中...
搜索中...
未找到
plcopen::core::rt::Result< T > 模板类 参考

#include <error.h>

Public 成员函数

constexpr operator bool () const
constexpr bool ok () const
constexpr ErrorCode error () const
constexpr const T & value () const
constexpr T & value ()

静态 Public 成员函数

static constexpr Result success (const T &value)
static constexpr Result failure (ErrorCode error)

详细描述

template<typename T>
class plcopen::core::rt::Result< T >

在文件 error.h 第 21 行定义.

成员函数说明

◆ error()

template<typename T>
ErrorCode plcopen::core::rt::Result< T >::error ( ) const
inlineconstexpr

在文件 error.h 第 44 行定义.

◆ failure()

template<typename T>
constexpr Result plcopen::core::rt::Result< T >::failure ( ErrorCode error)
inlinestaticconstexpr

在文件 error.h 第 29 行定义.

◆ ok()

template<typename T>
bool plcopen::core::rt::Result< T >::ok ( ) const
inlineconstexpr

在文件 error.h 第 39 行定义.

◆ operator bool()

template<typename T>
plcopen::core::rt::Result< T >::operator bool ( ) const
inlineexplicitconstexpr

在文件 error.h 第 34 行定义.

◆ success()

template<typename T>
constexpr Result plcopen::core::rt::Result< T >::success ( const T & value)
inlinestaticconstexpr

在文件 error.h 第 24 行定义.

◆ value() [1/2]

template<typename T>
T & plcopen::core::rt::Result< T >::value ( )
inlineconstexpr

在文件 error.h 第 54 行定义.

◆ value() [2/2]

template<typename T>
const T & plcopen::core::rt::Result< T >::value ( ) const
inlineconstexpr

在文件 error.h 第 49 行定义.


该类的文档由以下文件生成: