3 #include "core/cl/traits.h" 4 #include "core/exceptions.h" 9 template <
typename T, std::enable_if_t<::detail::is_vector_type_v<T>,
int> = 0>
10 constexpr
bool is_any_nan(
const T& t) {
14 template <
typename T, std::enable_if_t<!::detail::is_vector_type_v<T>,
int> = 0>
15 constexpr
bool is_any_nan(T t) {
21 template <
typename T, std::enable_if_t<::detail::is_vector_type_v<T>,
int> = 0>
22 constexpr
bool is_any_inf(
const T& t) {
26 template <
typename T, std::enable_if_t<!::detail::is_vector_type_v<T>,
int> = 0>
27 constexpr
bool is_any_inf(T t) {
34 void throw_if_suspicious(
const T& t) {
36 throw exceptions::value_is_nan(
"Nan value found.");
40 throw exceptions::value_is_inf(
"Inf value found.");
Definition: capsule_base.h:9