cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
identity.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_COMPLEX_IDENTITY_H
4#define pRC_CORE_COMPLEX_IDENTITY_H
5
8
9namespace pRC
10{
11 template<class T>
13 {
14 constexpr auto operator()() const
15 {
16 return Complex<T>(identity<T>());
17 }
18
19 template<class X>
21 constexpr auto operator()(X &&value) const
22 {
23 return Complex<T>(forward<X>(value));
24 }
25 };
26}
27#endif // pRC_CORE_COMPLEX_IDENTITY_H
Definition complex.hpp:22
Definition value.hpp:12
Definition concepts.hpp:37
int value
Definition gmock-actions_test.cc:1714
Definition cholesky.hpp:10
Complex(T const &) -> Complex< T >
static constexpr auto identity()
Definition identity.hpp:13
constexpr auto operator()(X &&value) const
Definition identity.hpp:21
constexpr auto operator()() const
Definition identity.hpp:14
Definition identity.hpp:11