|
MT Core (C++)
Core library for replacing C++ standard in project usage
|
A struct representing an error Auto convertible to a Result of any type. More...
#include <result.hpp>

Public Types | |
| using | Type = Underlying |
Public Member Functions | |
| template<typename T> | |
| operator Result< T, Underlying > () const noexcept | |
| Casts to a Result type (meant to be implicit) | |
| bool | operator== (const Error &o) const noexcept |
| Compares error codes. | |
| bool | operator!= (const Error &o) const noexcept |
Public Attributes | |
| Underlying | code |
A struct representing an error Auto convertible to a Result of any type.
Represents a result error (create with the error() method) Auto castable to Result.
| Underlying | Underlying error code type |
Definition at line 62 of file result.hpp.
| using mtcore::Error< Underlying >::Type = Underlying |
Definition at line 63 of file result.hpp.
|
noexcept |
Casts to a Result type (meant to be implicit)
| T | Result type to cast to |
Definition at line 413 of file result.hpp.

|
inlinenoexcept |
Definition at line 80 of file result.hpp.
|
inlinenoexcept |
Compares error codes.
| o | Other error |
Definition at line 79 of file result.hpp.
| Underlying mtcore::Error< Underlying >::code |
Definition at line 64 of file result.hpp.