Files
cppdraft_translate/cppdraft/complex/syn.md
2025-10-25 03:02:53 +03:00

4.9 KiB

[complex.syn]

29 Numerics library [numerics]

29.4 Complex numbers [complex.numbers]

29.4.2 Header synopsis [complex.syn]

🔗

namespace std {// [complex], class template complextemplate class complex; // [complex.ops], operatorstemplate constexpr complex operator+(const complex&, const complex&); template constexpr complex operator+(const complex&, const T&); template constexpr complex operator+(const T&, const complex&); template constexpr complex operator-(const complex&, const complex&); template constexpr complex operator-(const complex&, const T&); template constexpr complex operator-(const T&, const complex&); template constexpr complex operator*(const complex&, const complex&); template constexpr complex operator*(const complex&, const T&); template constexpr complex operator*(const T&, const complex&); template constexpr complex operator/(const complex&, const complex&); template constexpr complex operator/(const complex&, const T&); template constexpr complex operator/(const T&, const complex&); template constexpr complex operator+(const complex&); template constexpr complex operator-(const complex&); template constexpr bool operator==(const complex&, const complex&); template constexpr bool operator==(const complex&, const T&); template<class T, class charT, class traits> basic_istream<charT, traits>& operator>>(basic_istream<charT, traits>&, complex&); template<class T, class charT, class traits> basic_ostream<charT, traits>& operator<<(basic_ostream<charT, traits>&, const complex&); // [complex.value.ops], valuestemplate constexpr T real(const complex&); template constexpr T imag(const complex&); template constexpr T abs(const complex&); template constexpr T arg(const complex&); template constexpr T norm(const complex&); template constexpr complex conj(const complex&); template constexpr complex proj(const complex&); template constexpr complex polar(const T&, const T& = T()); // [complex.transcendentals], transcendentalstemplate constexpr complex acos(const complex&); template constexpr complex asin(const complex&); template constexpr complex atan(const complex&); template constexpr complex acosh(const complex&); template constexpr complex asinh(const complex&); template constexpr complex atanh(const complex&); template constexpr complex cos (const complex&); template constexpr complex cosh (const complex&); template constexpr complex exp (const complex&); template constexpr complex log (const complex&); template constexpr complex log10(const complex&); template constexpr complex pow (const complex&, const T&); template constexpr complex pow (const complex&, const complex&); template constexpr complex pow (const T&, const complex&); template constexpr complex sin (const complex&); template constexpr complex sinh (const complex&); template constexpr complex sqrt (const complex&); template constexpr complex tan (const complex&); template constexpr complex tanh (const complex&); // [complex.tuple], tuple interfacetemplate struct tuple_size; template<size_t I, class T> struct tuple_element; template struct tuple_size<complex>; template<size_t I, class T> struct tuple_element<I, complex>; template<size_t I, class T>constexpr T& get(complex&) noexcept; template<size_t I, class T>constexpr T&& get(complex&&) noexcept; template<size_t I, class T>constexpr const T& get(const complex&) noexcept; template<size_t I, class T>constexpr const T&& get(const complex&&) noexcept; // [complex.literals], complex literalsinline namespace literals {inline namespace complex_literals {constexpr complex operator""il(long double); constexpr complex operator""il(unsigned long long); constexpr complex operator""i(long double); constexpr complex operator""i(unsigned long long); constexpr complex operator""if(long double); constexpr complex operator""if(unsigned long long); }}}