Blaze 3.9
RelaxationFlag.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_RELAXATIONFLAG_H_
36#define _BLAZE_MATH_RELAXATIONFLAG_H_
37
38
39namespace blaze {
40
41//=================================================================================================
42//
43// RELAXATION FLAG
44//
45//=================================================================================================
46
47//*************************************************************************************************
65enum RelaxationFlag : bool
66{
67 strict = false,
68 relaxed = true
69};
70//*************************************************************************************************
71
72
73//*************************************************************************************************
84constexpr RelaxationFlag operator!( RelaxationFlag flag ) noexcept
85{
86 return static_cast<RelaxationFlag>( !static_cast<bool>( flag ) );
87}
88//*************************************************************************************************
89
90} // namespace blaze
91
92#endif
RelaxationFlag
Relaxation flag for strict or relaxed semantics.
Definition: RelaxationFlag.h:66
constexpr RelaxationFlag operator!(RelaxationFlag flag) noexcept
Negating the given relaxation flag.
Definition: RelaxationFlag.h:84
@ relaxed
Flag for relaxed semantics.
Definition: RelaxationFlag.h:68
@ strict
Flag for strict semantics.
Definition: RelaxationFlag.h:67