![]() |
MySQL 26.10.0
Source Code Documentation
|
Result of collecting one system information capability. More...
#include <system_info.h>
Public Member Functions | |
| System_result ()=default | |
| Construct an unavailable result. More... | |
| Result_state | state () const noexcept |
| bool | has_value () const noexcept |
| const T & | value () const & |
| Access the available value. More... | |
| T & | value () & |
| Access the available value. More... | |
| T | value () && |
| Move the value out of an available temporary result. More... | |
| T | value () const && |
| Copy the value out of an available const temporary result. More... | |
| const std::error_code & | error () const &noexcept |
| Access the collection error. More... | |
| std::error_code | error () &&noexcept |
| Move the error out of a failed temporary result. More... | |
| std::error_code | error () const &&noexcept |
| Copy the error out of a failed const temporary result. More... | |
Static Public Member Functions | |
| static System_result | success (T value) |
| Construct an available result. More... | |
| static System_result | unavailable () |
| static System_result | failure (std::error_code error) |
| Construct a failed result. More... | |
Private Attributes | |
| std::optional< T > | m_value |
| std::error_code | m_error |
| Result_state | m_state {Result_state::unavailable} |
Result of collecting one system information capability.
An available result contains one complete value. An unavailable result means that the platform has no supported equivalent. A failed result means that collection was attempted but failed.
| T | Collected capability type |
|
default |
Construct an unavailable result.
|
inlinenoexcept |
Move the error out of a failed temporary result.
|
inlinenoexcept |
Copy the error out of a failed const temporary result.
|
inlinenoexcept |
Access the collection error.
|
inlinestatic |
Construct a failed result.
| error | Collection error |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestatic |
Construct an available result.
| value | Complete capability value |
|
inlinestatic |
|
inline |
Access the available value.
|
inline |
Move the value out of an available temporary result.
|
inline |
Access the available value.
|
inline |
Copy the value out of an available const temporary result.
|
private |
|
private |
|
private |