apply

Sefly dereference all args of types btl.autoptr.shared_ptr.SharedPtr, btl.autoptr.rc_ptr.RcPtr and btl.autoptr.intrusive_ptr.IntrusivePtr and forward them to callable alias fn.

Ref args are copyied and non ref args are moved.

template apply(alias fn)
apply
(
Args...
)
(
scope auto ref Args args
)
if (
allSatisfy!(isSmartPtr, Args) &&
allSatisfy!(isMutable, staticMap!(GetControlType, Args))
)

Members

Functions

apply
auto apply(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
impl
auto impl(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta