pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
prc
core
functors
where.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_FUNCTORS_WHERE_H
4
#define pRC_CORE_FUNCTORS_WHERE_H
5
6
#include <
prc/core/basic/functions/where.hpp
>
7
#include <
prc/core/basic/type_traits.hpp
>
8
9
namespace
pRC
10
{
11
struct
Where
12
{
13
template
<
class
XE
,
class
XA
,
class
XB
,
14
If<True<decltype(where(declval<XE>
(),
declval<XA>
(),
15
declval<XB>
()))>> = 0>
16
constexpr
decltype
(
auto
)
operator
()(
XE
&&
e
,
XA
&&a,
XB
&&b)
const
17
{
18
return
where
(
forward<XE>
(
e
),
forward<XA>
(a),
forward<XB>
(b));
19
}
20
};
21
}
22
#endif
// pRC_CORE_FUNCTORS_WHERE_H
where.hpp
type_traits.hpp
pRC
Definition
cholesky.hpp:18
pRC::where
static constexpr T where(TE const e, T &&a, T &&b)
Definition
where.hpp:12
pRC::copy
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition
copy.hpp:13
pRC::Where
Definition
where.hpp:12
Generated by
1.9.8