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

Concept determining whether the Expected type supports rebinding its error-type. More...

#include <Common.hpp>

Concept definition

template<typename T, typename Error>
&& detail::unqualified<T>
&& requires(Error&& e) {
{ traits<T>::from_error(std::forward<Error>(e)) } -> std::same_as<T>;
}
Concept determining whether the Expected type supports rebinding its error-type.
Definition Common.hpp:403
Concept describing a type that acts like std::expected (has both a value and an error channel).
Definition Common.hpp:394
The central customization point for the library.
Definition Common.hpp:102

Detailed Description

Concept determining whether the Expected type supports rebinding its error-type.

Template Parameters
TThe source-expected type to adapt the new error-type.
ErrorThe new error-type to rebind to.