cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
apply.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_FUNCTORS_APPLY_H
4#define pRC_CORE_FUNCTORS_APPLY_H
5
8
9namespace pRC
10{
14 struct Apply
15 {
16 template<class XA, class XB,
17 If<True<decltype(apply<T, R, H>(declval<XA>(), declval<XB>()))>> =
18 0>
19 constexpr decltype(auto) operator()(XA &&a, XB &&b) const
20 {
21 return apply<T, R, H>(forward<XA>(a), forward<XB>(b));
22 }
23 };
24}
25#endif // pRC_CORE_FUNCTORS_APPLY_H
Restrict
Definition restrict.hpp:11
Hint
Definition hint.hpp:9
Transform
Definition transform.hpp:11
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
Definition apply.hpp:15
constexpr decltype(auto) operator()(XA &&a, XB &&b) const
Definition apply.hpp:19