29 Numerics library [numerics]

29.10 Data-parallel types [simd]

29.10.7 Class template basic_vec [simd.class]

29.10.7.4 Complex accessors [simd.complex.access]

constexpr real-type real() const noexcept; constexpr real-type imag() const noexcept;
Constraints: simd-complex<basic_vec> is modeled.
Returns: An object of type real-type where the element is initialized to the result of cmplx-func(operator[](i)) for all i in the range [0, size()), where cmplx-func is the corresponding function from <complex>.
constexpr void real(const real-type& v) noexcept; constexpr void imag(const real-type& v) noexcept;
Constraints: simd-complex<basic_vec> is modeled.
Effects: Replaces each element of the basic_vec object such that the element is replaced with value_type(v[i], operator[](i).imag()) or value_type(operator[](i).real(), v[i]) for real and imag respectively, for all i in the range [0, size()).