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

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

#include <Common.hpp>

Concept definition

template<typename Expected, typename Error>
&& requires {
{ detail::error(std::declval<rebind_error_t<Expected, Error>&&>()) } -> std::convertible_to<Error const&>;
}
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
Concept determining whether the Expected type supports rebinding its error-type.
Definition Common.hpp:424
typename traits< std::remove_cvref_t< Expected > >::template rebind_error< std::remove_cvref_t< Error > > rebind_error_t
Helper alias to obtain the Expected type with the rebound Error type.
Definition Common.hpp:416

Detailed Description

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

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