|
Alicat BASIS-2 Driver 1.0.0
API reference
|
Lightweight result wrapper. Aborts on value() if !ok().
More...
#include <alicat_basis2_types.hpp>
Public Member Functions | |
| constexpr bool | ok () const noexcept |
| constexpr | operator bool () const noexcept |
Static Public Member Functions | |
| static constexpr DriverResult | success (T v) noexcept |
| static constexpr DriverResult | failure (DriverError e) noexcept |
Public Attributes | |
| T | value {} |
| DriverError | error {DriverError::None} |
Lightweight result wrapper. Aborts on value() if !ok().
|
inlinestaticconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
| DriverError alicat_basis2::DriverResult< T >::error {DriverError::None} |
| T alicat_basis2::DriverResult< T >::value {} |