Template result container with error handling capabilities. More...
#include <tres.hpp>
Public Member Functions | |
| tres (const T &value) | |
| tres (const R &value) | |
| R & | getErr () |
| const R & | getErr () const BY_CONST_FUNC(getErr()) void rel() override |
| void | set (const T &arg) override |
| void | setErr (const R &arg) |
Public Member Functions inherited from by::tmay< T > | |
| tmay (const T &value) | |
| tmay (const tmedium< T > &value) | |
| T * | operator-> () |
| const T * | operator-> () const BY_CONST_FUNC(operator->()) |
| T & | operator* () |
| const T & | operator* () const BY_CONST_FUNC(operator*()) |
| operator T& () | |
| operator const T & () const | |
| operator nbool () const | |
| nbool | has () const |
| T * | get () |
| const T * | get () const BY_CONST_FUNC(get()) virtual void rel() |
Template result container with error handling capabilities.
Extends tmay<T> to include error information of type R. Provides dual-state container that can hold either a successful value or an error state, making it useful for robust error handling patterns.
|
overridevirtual |
Reimplemented from by::tmay< T >.