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::imag(3) C++ Standard Libary std::complex::imag(3)

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


primary template
complex<T>
T imag() const; (until
C++14)
constexpr T (since
imag() const; C++14)
void imag( T (until
value ); C++20)
constexpr void (since
imag( T value ); C++20)
specialization
complex<float>
float imag() (until
const; C++11)
constexpr float (since
imag() const; C++11)
void imag( float (until
value ); C++20)
constexpr void (since
imag( float C++20)
value );
specialization
complex<double>
double imag() (1) (until
const; C++11)
constexpr double (2) (since
imag() const; C++11)
void imag( (until
double value ); (1) C++20)
constexpr void (since
imag( double (2) C++20)
value );
specialization
complex<long (1)
double>
long double (2) (until
imag() const; C++11)
constexpr long (since
double imag() C++11)
const; (1)
void imag( long (until
double value ); C++20)
constexpr void (2) (since
imag( long C++20)
double value );


Accesses the imaginary part of the complex number.


1) Returns the imaginary part.
2) Sets the imaginary part to value.


value - the value to set the imaginary part to


1) The imaginary part of *this.
2) (none)


In C++11, overload (1) in complex specializations used to be specified without const
qualifier. However, in C++11, a constexpr specifier used in a non-static member
function implies const, and thus the behavior is as if const is specified.


imag returns the imaginary component
(function template)
real accesses the real part of the complex number
(public member function)

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.