10#if VIR_HAVE_SIMD_CONCEPTS
11#define VIR_HAVE_SIMD_CVT 1
26 cvt(
const cvt&) =
delete;
29 requires std::convertible_to<T, U> or
requires(
const T&x)
31 { stdx::static_simd_cast<U>(x) } -> std::same_as<U>;
36 if constexpr (std::convertible_to<T, U>)
39 return stdx::static_simd_cast<U>(ref);
This namespace collects libraries and tools authored by Matthias Kretz.
Definition constexpr_wrapper.h:21
C++20 concepts extending the Parallelism TS 2 (which is limited to C++17).