Skip to content

Function to_handle

function to_handle(E &) base

template <typename E, typename T = expression_value_type<E>, index_t Dims = expression_dims<E>>
KFR_INTRINSIC expression_handle<T, Dims> to_handle(E& expr)

Converts the given expression into an opaque handle.

Template parameters
E Concrete expression type.
T Value type (deduced from E).\n
Dims Dimensionality (deduced from E).
Parameters
expr Expression to wrap.
Returns
Non-owning handle referencing expr.

Warning

Use with caution with local variables; the handle does not extend expr's lifetime.

Fully qualified name: kfr::to_handle(E &)

Declared at base/handle.hpp:397

Function to_handle

function to_handle(E &&) base

template <typename E, typename T = expression_value_type<E>, index_t Dims = expression_dims<E>>
KFR_INTRINSIC expression_handle<T, Dims> to_handle(E&& expr)

Converts the given expression into an opaque handle.

Template parameters
E Concrete expression type.
T Value type (deduced from E).
Dims Dimensionality (deduced from E).
Parameters
expr Expression to move into the handle.
Returns
Owning handle that keeps expr alive.

Note

Use std::move to force use of this overload.

Fully qualified name: kfr::to_handle(E &&)

Declared at base/handle.hpp:416

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.