cMHN
1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
functors
not_fn.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_FUNCTORS_NOT_FN_H
4
#define pRC_CORE_FUNCTORS_NOT_FN_H
5
6
#include <
prc/core/basic/basics.hpp
>
7
#include <
prc/core/functors/logical_not.hpp
>
8
9
namespace
pRC
10
{
11
template
<
class
F>
12
struct
NotFn
13
{
14
template
<
class
... Xs>
15
requires
requires
{
LogicalNot
()(F()(declval<Xs>()...)); }
16
constexpr
decltype
(
auto
)
operator
()(Xs &&...args)
const
17
{
18
return
LogicalNot
()(F()(forward<Xs>(args)...));
19
}
20
};
21
}
22
#endif
// pRC_CORE_FUNCTORS_NOT_FN_H
basics.hpp
logical_not.hpp
pRC
Definition
cholesky.hpp:10
pRC::LogicalNot
Definition
logical_not.hpp:11
pRC::NotFn
Definition
not_fn.hpp:13
Generated by
1.11.0