Blaze 3.9
IsDivisor.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_SHIMS_ISDIVISOR_H_
36#define _BLAZE_MATH_SHIMS_ISDIVISOR_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// ISDIVISOR SHIM
54//
55//=================================================================================================
56
57//*************************************************************************************************
78template< typename Type, EnableIf_t< IsScalar_v<Type> >* = nullptr >
79BLAZE_ALWAYS_INLINE bool isDivisor( const Type& v )
80{
81 return v != Type{};
82}
83//*************************************************************************************************
84
85} // namespace blaze
86
87#endif
Header file for the EnableIf class template.
Header file for the IsScalar type trait.
BLAZE_ALWAYS_INLINE bool isDivisor(const Type &v)
Returns whether the given value/object is a valid divisor.
Definition: IsDivisor.h:79
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the equal shim.
System settings for the inline keywords.