Lines Matching full:complex
12 #include <complex>
22 static_assert ( std::is_same<decltype( 3.0il ), std::complex<long double>>::value, "" );
23 static_assert ( std::is_same<decltype( 3il ), std::complex<long double>>::value, "" );
24 static_assert ( std::is_same<decltype( 3.0i ), std::complex<double>>::value, "" );
25 static_assert ( std::is_same<decltype( 3i ), std::complex<double>>::value, "" );
26 static_assert ( std::is_same<decltype( 3.0if ), std::complex<float>>::value, "" );
27 static_assert ( std::is_same<decltype( 3if ), std::complex<float>>::value, "" );
30 std::complex<long double> c1 = 3.0il;
31 assert ( c1 == std::complex<long double>(0, 3.0));
37 std::complex<double> c1 = 3.0i;
38 assert ( c1 == std::complex<double>(0, 3.0));
44 std::complex<float> c1 = 3.0if;
45 assert ( c1 == std::complex<float>(0, 3.0));