GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::complex::complex(3) C++ Standard Libary std::complex::complex(3)

std::complex::complex - std::complex::complex


Primary template complex<T>
complex( const T& re = T(), const T& im = T() ); (1) (until C++14)
constexpr complex( const T& re = T(), const T& im = T() ); (1) (since C++14)
complex( const complex& other ); (2) (until C++14)
constexpr complex( const complex& other ); (2) (since C++14)
template< class X > (3) (until C++14)
complex( const complex<X>& other);
template< class X > (3) (since C++14)
constexpr complex( const complex<X>& other);
Specialization complex<float>
complex( float re = 0.0f, float im = 0.0f ); (1) (until C++11)
constexpr complex(float re = 0.0f, float im = 0.0f); (1) (since C++11)
explicit complex( const complex<double>& other ); (3) (until C++11)
explicit complex( const complex<long double>& other );
explicit constexpr complex( const complex<double>& other ); (3) (since C++11)
explicit constexpr complex( const complex<long double>& other );
Specialization complex<double>
complex( double re = 0.0, double im = 0.0 ); (1) (until C++11)
constexpr complex( double re = 0.0, double im = 0.0 ); (1) (since C++11)
complex( const complex<float>& other ); (3) (until C++11)
explicit complex( const complex<long double>& other );
constexpr complex( const complex<float>& other ); (3) (since C++11)
explicit constexpr complex( const complex<long double>& other );
Specialization complex<long double>
complex( long double re = 0.0L, long double im = 0.0L ); (1) (until C++11)
constexpr complex( long double re = 0.0L, long double im = 0.0L ); (1) (since C++11)
complex( const complex<float>& other ); (3) (until C++11)
complex( const complex<double>& other );
constexpr complex( const complex<float>& other ); (3) (since C++11)
constexpr complex( const complex<double>& other );


Constructs the std::complex object.


1) Constructs the complex number from real and imaginary parts.
2) Copy constructor. Constructs the object with the copy of the contents of other.
The copy constructor is implicit in the standard specializations.
3) Converting constructor. Constructs the object from a complex number of a
different type.


re - the real part
im - the imaginary part
other - another complex to use as source


operator= assigns the contents
(public member function)
operator""if
operator""i A std::complex literal representing pure imaginary number
operator""il (function)
(C++14)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.