Blaze 3.9
Sub.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_SHIMS_SUB_H_
36#define _BLAZE_MATH_SHIMS_SUB_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
44#include <blaze/system/Inline.h>
45
46
47namespace blaze {
48
49//=================================================================================================
50//
51// SUB SHIM
52//
53//=================================================================================================
54
55//*************************************************************************************************
65template< typename T1, typename T2 >
66BLAZE_ALWAYS_INLINE constexpr decltype(auto) sub( 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_ALWAYS_INLINE constexpr decltype(auto) sub(T1 &&lhs, T2 &&rhs) noexcept(noexcept(lhs - rhs))
Subtraction of the two given arguments.
Definition: Sub.h:66
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
System settings for the inline keywords.