28 #ifndef INCLUDED_MDDS_GLOBAL_HPP
29 #define INCLUDED_MDDS_GLOBAL_HPP
35 #include <type_traits>
47 #define MDDS_ASCII(literal) literal, sizeof(literal) - 1
57 #define MDDS_N_ELEMENTS(name) sizeof(name) / sizeof(name[0])
60 #define MDDS_DEPRECATED __attribute__((deprecated))
61 #elif defined(_MSC_VER)
62 #define MDDS_DEPRECATED __declspec(deprecated)
64 #define MDDS_DEPRECATED
67 #ifndef MDDS_LOOP_UNROLLING
68 #define MDDS_LOOP_UNROLLING 1
71 #ifndef MDDS_USE_OPENMP
72 #define MDDS_USE_OPENMP 0
75 #if defined(__AVX__) || defined(__AVX2__)
91 virtual const char* what()
const noexcept
129 using bool_constant = std::integral_constant<bool, B>;
138 static y_type test(
typename U::value_type);
140 static n_type test(...);
143 static constexpr
bool value =
sizeof(test<T>(0)) ==
sizeof(y_type);
146 template<
typename T,
typename IsConst>
152 using type =
typename std::add_const<T>::type;
161 template<
typename T,
bool Const>
164 template<
typename T,
typename IsConst>
170 using type =
typename T::const_iterator;
176 using type =
typename T::iterator;
180 constexpr
bool invalid_static_int()
Definition: global.hpp:84
Definition: global.hpp:133
Definition: global.hpp:122
Definition: global.hpp:101
Definition: global.hpp:108
Definition: global.hpp:115
Definition: global.hpp:147
Definition: global.hpp:165