|
Simple Lua
A Simple C++ Lua Wrapper
|
Basic way to return a value or an error. More...
#include <Result.hpp>
Public Member Functions | |
| Result (const Result &)=delete | |
| Result (Result &&)=delete | |
| Result (T &&val) | |
| Result (const E &err) | |
| T & | value () |
| const T & | value () const |
| const E & | error () const |
| bool | good () const |
| operator bool () const | |
| constexpr T * | operator-> () |
| constexpr const T * | operator-> () const |
| constexpr T & | operator* () |
| constexpr const T & | operator* () const |
Basic way to return a value or an error.
| T | The return type of the result |
| E | The type of error to be handled |