pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
prc
core
value
functions
plus.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_VALUE_FUNCTIONS_PLUS_H
4
#define pRC_CORE_VALUE_FUNCTIONS_PLUS_H
5
6
#include <
prc/core/value/float.hpp
>
7
#include <
prc/core/value/integer.hpp
>
8
#include <
prc/core/value/type_traits.hpp
>
9
10
namespace
pRC
11
{
22
template
<
class
T, If<IsValue<T>> = 0>
23
static
inline
constexpr
auto
operator+
(
T
const
&a)
24
{
25
return
T
(+a());
26
}
27
}
28
#endif
// pRC_CORE_VALUE_FUNCTIONS_PLUS_H
type_traits.hpp
float.hpp
integer.hpp
pRC
Definition
cholesky.hpp:18
pRC::copy
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition
copy.hpp:13
pRC::operator+
static constexpr auto operator+(Sequence< T, As... > const, Sequence< T, Bs... > const)
Definition
sequence.hpp:110
Generated by
1.9.8