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