The value of a call, or why there is none.
More...
#include <mcp9700_types.hpp>
|
| constexpr bool | ok () const noexcept |
| |
| constexpr | operator bool () const noexcept |
| |
template<typename T>
struct mcp9700::Result< T >
The value of a call, or why there is none.
- Template Parameters
-
| T | The value type. Result<void> carries only the error. |
◆ Failure()
template<typename T >
|
|
inlinestaticconstexprnoexcept |
A failed result.
- Parameters
-
- Returns
{T{}, e}.
◆ ok()
- Returns
- true when the call succeeded.
◆ operator bool()
template<typename T >
|
|
inlineexplicitconstexprnoexcept |
- Returns
- true when the call succeeded.
◆ Success()
template<typename T >
|
|
inlinestaticconstexprnoexcept |
A successful result.
- Parameters
-
- Returns
{v, Error::Ok}.
The documentation for this struct was generated from the following file: