Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
shims
Add.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_SHIMS_ADD_H_
36
#define _BLAZE_MATH_SHIMS_ADD_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/system/Inline.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// ADD SHIM
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
65
template
<
typename
T1,
typename
T2 >
66
BLAZE_ALWAYS_INLINE
constexpr
decltype
(
auto
)
add
( T1&& lhs, T2&& rhs )
67
noexcept
(
noexcept
( lhs + rhs ) )
68
{
69
return
std::forward<T1>( lhs ) + std::forward<T2>( rhs );
70
}
71
//*************************************************************************************************
72
73
}
// namespace blaze
74
75
#endif
blaze::add
BLAZE_ALWAYS_INLINE constexpr decltype(auto) add(T1 &&lhs, T2 &&rhs) noexcept(noexcept(lhs+rhs))
Addition of the two given arguments.
Definition
Add.h:66
BLAZE_ALWAYS_INLINE
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition
Inline.h:85
Inline.h
System settings for the inline keywords.
Generated by
1.18.0