5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_LINALG_COPY_ELEMENTS_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_LINALG_COPY_ELEMENTS_HPP_
11#include "arene/base/linalg/detail/mandates.hpp"
13#include "arene/base/stdlib_choice/enable_if.hpp"
23namespace copy_elements_detail {
26class copy_elements_fn {
39 linalg_detail::possibly_comparable_constraints<InSpan, OutSpan>,
43 constexpr auto operator()(InSpan
const source, OutSpan
const dest)
const noexcept(
47 return elementwise_unary_transform(source, dest, ::arene::base::identity{});
#define ARENE_CPP14_INLINE_VARIABLE(type, name)
Emulates C++17's inline variable declarations for function objects.
Definition cpp14_inline.hpp:69
Definition accumulate.hpp:37
constexpr bool is_invocable_v
Determine if a functor type is invocable with the specified argument types.
constexpr bool is_nothrow_invocable_v
Determine if a functor type is no-throw invocable with the specified argument types.
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
Definition accumulate.hpp:36
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41