cti::exceptional_result class

A class which is convertible to any result and that holds an exception which is then passed to the converted result object.

Contents

Public functions

void set_exception(exception_t exception)
Sets an exception.
auto get_exception() &noexcept -> exception_t&
Returns the contained exception.
auto get_exception() const &noexcept -> exception_t const &
Returns the contained exception.
auto get_exception() &&noexcept -> exception_t&&
Returns the contained exception.