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

Concept determining whether the Nullable type supports rebinding its value-type. More...

#include <Common.hpp>

Concept definition

template<typename Nullable, typename Value>
&& requires {
{ detail::value(std::declval<rebind_value_t<Nullable, Value>>()) } -> std::convertible_to<Value const&>;
}
Concept determining whether the Nullable is constructible with the specified argument.
Definition Common.hpp:251
Concept describing a type that can be used as a monad in the pipeline.
Definition Common.hpp:200
Concept determining whether the Nullable type supports rebinding its value-type.
Definition Common.hpp:288
typename traits< std::remove_cvref_t< Nullable > >::template rebind_value< Value > rebind_value_t
Helper alias to obtain the Nullable type with the rebound Value type.
Definition Common.hpp:280

Detailed Description

Concept determining whether the Nullable type supports rebinding its value-type.

Template Parameters
NullableThe source-nullable type to adapt the new value-type.
ValueThe new value-type to rebind to.