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

Concept determining whether the Nullable is constructible with the specified argument. More...

#include <Common.hpp>

Concept definition

template<typename T, typename Arg>
&& detail::unqualified<T>
&& detail::constructible_from_value<T, Arg&&>
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

Detailed Description

Concept determining whether the Nullable is constructible with the specified argument.

Template Parameters
TThe type to check.
ArgThe construction argument type to forward.

A nullable is considered constructible from value if at least one of the following is true:

  • Priority 1: Its gimo::traits specialization has an accessible from_value static function, which takes Arg as argument and returns T.
  • Priority 2: It's (possibly explicitly) constructible from Arg.