Function substitute¶
function substitute(const internal_generic::anything &, Args &&...) base¶
template <typename... Args>
KFR_INTRINSIC bool substitute(const internal_generic::anything&, Args&&...) Fallback substitute that accepts any expression and arguments and does nothing.
Always false. |
Fully qualified name: kfr::substitute(const internal_generic::anything &, Args &&...)
Declared at base/handle.hpp:492
Function substitute¶
function substitute(expression_placeholder<T, Dims, Key> &, expression_handle<T, Dims>, csize_t<Key>) base¶
template <typename T, index_t Dims, size_t Key = 0>
KFR_INTRINSIC bool substitute(expression_placeholder<T, Dims, Key>& expr,
expression_handle<T, Dims> new_handle, csize_t<Key> = csize_t<Key> { … } Bind a placeholder to a concrete expression handle.
| expr | Placeholder to bind. |
| new_handle | Handle to the expression that will fill the placeholder slot. |
| key | Compile-time key tag (must match Key). |
Always true (a placeholder always accepts a binding). |
Fully qualified name: kfr::substitute(expression_placeholder<T, Dims, Key> &, expression_handle<T, Dims>, csize_t<Key>)
Declared at base/handle.hpp:519
Function substitute¶
function substitute(expression_with_arguments<Args...> &, expression_handle<T, Dims>, csize_t<Key>) base¶
template <typename... Args, typename T, index_t Dims, size_t Key = 0>
KFR_INTRINSIC bool substitute(expression_with_arguments<Args...>& expr, expression_handle<T, Dims> new_handle,
csize_t<Key> = csize_t<Key> { … } Recursively substitute a placeholder inside a composite expression.
| expr | Composite expression whose arguments are searched. |
| new_handle | Handle to substitute into a matching placeholder. |
| key | Compile-time key tag selecting which placeholder to bind. |
true if a placeholder was found and substituted. |
Fully qualified name: kfr::substitute(expression_with_arguments<Args...> &, expression_handle<T, Dims>, csize_t<Key>)
Declared at base/handle.hpp:537
Function substitute¶
function substitute(expression_handle<T, Dims> &, expression_handle<T, Dims>, csize_t<Key>) base¶
template <typename T, index_t Dims, size_t Key = 0>
KFR_INTRINSIC bool substitute(expression_handle<T, Dims>& expr, expression_handle<T, Dims> new_handle,
csize_t<Key> = csize_t<Key> { … } Substitute the placeholder inside the expression referenced by expr.
| expr | Handle whose referenced expression contains a placeholder. |
| new_handle | Handle to substitute into the placeholder slot. |
| key | Compile-time key tag (must be 0). |
true if a placeholder was found and substituted. |
Fully qualified name: kfr::substitute(expression_handle<T, Dims> &, expression_handle<T, Dims>, csize_t<Key>)
Declared at base/handle.hpp:554