cMHN
1.1
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/type_traits.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
If<True<decltype(LogicalNot()(F()(declval<Xs>
()...)))>> = 0>
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
type_traits.hpp
logical_not.hpp
pRC
Definition
cholesky.hpp:18
pRC::makeConstantSequence
static constexpr auto makeConstantSequence()
Definition
sequence.hpp:402
pRC::LogicalNot
Definition
logical_not.hpp:11
pRC::NotFn
Definition
not_fn.hpp:13
Generated by
1.10.0