cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
less.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_BASIC_FUNCTIONS_LESS_H
4#define pRC_CORE_BASIC_FUNCTIONS_LESS_H
5
8
9namespace pRC
10{
11 template<class X>
12 static inline constexpr auto operator<(X &&a, Zero<> const)
13 {
15 }
16
17 template<class X>
18 static inline constexpr auto operator<(Zero<> const, X &&b)
19 {
20 return zero<RemoveReference<X>>() < forward<X>(b);
21 }
22
23 static inline constexpr auto operator<(Zero<> const, Zero<> const)
24 {
25 return false;
26 }
27}
28#endif // pRC_CORE_BASIC_FUNCTIONS_LESS_H
Definition cholesky.hpp:18
static constexpr auto operator<(X &&a, Zero<> const)
Definition less.hpp:12
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
Definition type_traits.hpp:268