gimo v0.1.0
Loading...
Searching...
No Matches
gimo::expected_like Concept Reference

Concept describing a type that acts like std::expected (has both a value and an error channel). More...

#include <Common.hpp>

Concept definition

template<typename T>
&& detail::readable_error<T>
Concept describing a type that acts like std::expected (has both a value and an error channel).
Definition Common.hpp:394
Concept describing a type that can be used as a monad in the pipeline.
Definition Common.hpp:200

Detailed Description

Concept describing a type that acts like std::expected (has both a value and an error channel).

Template Parameters
TThe type to check.

An expected_like type must satisfy nullable and additionally support error extraction via gimo::traits::error(), member .error(), or ADL error() (in that priority).