MCPcopy Create free account
hub / github.com/BowenFu/hspp / evalDeferredImpl

Function evalDeferredImpl

develop/include/do_notation.h:119–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118template <typename ClassT, typename T , typename = std::enable_if_t<isNullaryV<T>, void>>
119constexpr auto evalDeferredImpl(T&& t)
120{
121 static_assert(std::is_same_v<MonadType<ClassT>, MonadType<std::invoke_result_t<T>>>);
122 return t();
123}
124
125template <typename T>
126class IsNullaryOrId : public IsNullary<T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected