cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
logical_and.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_FUNCTORS_LOGICAL_AND_H
4#define pRC_CORE_FUNCTORS_LOGICAL_AND_H
5
8
9namespace pRC
10{
12 {
13 template<class T, If<IsInvocable<Identity<T>>> = 0>
14 static constexpr auto Identity()
15 {
16 return identity<T>();
17 }
18
19 template<class XA, class XB,
21 constexpr decltype(auto) operator()(XA &&a, XB &&b) const
22 {
23 return forward<XA>(a) && forward<XB>(b);
24 }
25 };
26}
27#endif // pRC_CORE_FUNCTORS_LOGICAL_AND_H
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
Definition logical_and.hpp:12
static constexpr auto Identity()
Definition logical_and.hpp:14
constexpr decltype(auto) operator()(XA &&a, XB &&b) const
Definition logical_and.hpp:21