Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
uni20::ReadTensorLease Concept Reference

ImmediateTensorView that owns a move-only read access lifetime. More...

#include <access.hpp>

Concept definition

template<class Lease>
concept uni20::ReadTensorLease = ImmediateTensorView<Lease> && std::move_constructible<Lease> &&
(!std::copy_constructible<Lease>) && requires(Lease& lease) {
{ lease.release() } noexcept;
}
TensorView whose mdspec is already an mdspan.
Definition tensor/concepts.hpp:100
ImmediateTensorView that owns a move-only read access lifetime.
Definition access.hpp:564

Detailed Description

ImmediateTensorView that owns a move-only read access lifetime.

release() must be noexcept and idempotent. Moving an active lease transfers its access lifetime and leaves the source inactive.