35 template <
typename T,
typename R>
class tres:
public tmay<T> {
41 explicit tres(
const T& value);
42 explicit tres(
const R& value);
68 std::optional<
R> _err;
Optional value wrapper for error indication without exceptions
Definition tmay.hpp:50
Template result container with typed error information
Definition tres.hpp:35
const R & getErr() const BY_CONST_FUNC(getErr()) void rel() override
Releases/clears both the contained value and the error, making the instance empty.
void setErr(const R &arg)
Sets the contained error and clears any existing value.
R & getErr()
Gets the contained error.
void set(const T &arg) override
Sets the contained value and clears any existing error.
Weak reference smart pointer with type-safe access
Definition tweak.hpp:16