34 template <
typename T,
typename R>
class tres:
public tmay<T> {
40 explicit tres(
const T& value);
41 explicit tres(
const R& value);
66 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:34
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.
Rich logging support with polymorphic type conversion
Definition richLog.hpp:34