3#ifndef pRC_CORE_TENSOR_FUNCTIONS_SWAP_H
4#define pRC_CORE_TENSOR_FUNCTIONS_SWAP_H
13 template<
class XA,
class XB, IsTensorish RA = RemoveReference<XA>,
14 IsTensorish RB = RemoveReference<XB>,
15 class EA = ResultOf<XA,
typename RA::Subscripts>,
16 class EB = ResultOf<XB,
typename RB::Subscripts>>
17 requires IsSame<typename RA::Sizes, typename RB::Sizes> &&
18 IsInvocable<Swap, EA, EB> && IsInvocable<View, XA> &&
20 static inline constexpr auto swap(XA &&a, XB &&b)
23 [&a, &b](
auto const... indices)
25 swap(forward<XA>(a)(indices...), forward<XB>(b)(indices...));
Definition cholesky.hpp:10
static constexpr auto swap(XA &&a, XB &&b)
Definition swap.hpp:20
static constexpr auto range(F &&f, Xs &&...args)
Definition range.hpp:18