Blaze 3.9
Loading...
Searching...
No Matches
Reset.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_SHIMS_RESET_H_
36#define _BLAZE_MATH_SHIMS_RESET_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
45#include <blaze/system/Inline.h>
46#include <blaze/util/EnableIf.h>
47
48
49namespace blaze {
50
51//=================================================================================================
52//
53// RESET SHIM
54//
55//=================================================================================================
56
57//*************************************************************************************************
67template< typename T
69BLAZE_ALWAYS_INLINE constexpr void reset( T& resettable )
70{
71 resettable = T();
72}
73//*************************************************************************************************
74
75} // namespace blaze
76
77#endif
Header file for the EnableIf class template.
Header file for the IsSIMDPack type trait.
Header file for the IsScalar type trait.
constexpr bool IsSIMDPack_v
Auxiliary variable template for the IsSIMDPack type trait.
Definition IsSIMDPack.h:157
constexpr void reset(Matrix< MT, SO > &matrix)
Resetting the given matrix.
Definition Matrix.h:806
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition Inline.h:85
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition EnableIf.h:138
System settings for the inline keywords.