Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::detail::ManagedDerivation Concept Reference

Reject known borrowed outputs; arbitrary user values still satisfy Property's owning contract. More...

#include <managed.hpp>

Concept definition

template<class Callback, class In>
std::copy_constructible<std::decay_t<Callback>> && std::invocable<Callback &, const In &> &&
std::equality_comparable<DerivedOutput<Callback, In>> &&
std::constructible_from<DerivedOutput<Callback, In>, DerivedOutput<Callback, In> &&> &&
(!std::is_reference_v<std::invoke_result_t<Callback &, const In &>>) &&
(!IS_UNSUPPORTED_DERIVED_EXPECTED<std::remove_cvref_t<std::invoke_result_t<Callback &, const In &>>>) &&
(!std::is_pointer_v<DerivedOutput<Callback, In>>) && (!IS_BORROWED_DERIVED_VALUE<DerivedOutput<Callback, In>>) &&
(!std::ranges::view<DerivedOutput<Callback, In>>)
Reject known borrowed outputs; arbitrary user values still satisfy Property's owning contract.
Definition managed.hpp:312

Detailed Description

Reject known borrowed outputs; arbitrary user values still satisfy Property's owning contract.

Template Parameters
CallbackOwning synchronous computation taking the declared input by const reference.
InEquality-comparable source value retained for one call.