On this page
std::get(std::complex)
Defined in header <complex> |
||
---|---|---|
|
(1) | (since C++26) |
|
(2) | (since C++26) |
|
(3) | (since C++26) |
|
(4) | (since C++26) |
Returns the reference to real or imaginary part from a complex
when I == 0
or I == 1
, respectively. It is mainly provided for structured binding support.
Parameters
x | - | a complex |
Return value
1-4) A reference to the real or imaginary part from the stored one when
I == 0
or I == 1
, respectively.
Example
See also
Structured binding (C++17) | binds the specified names to sub-objects or tuple elements of the initializer |
(C++11)
|
tuple accesses specified element (function template) |
(C++11)
|
accesses an element of a pair (function template) |
(C++11)
|
accesses an element of an array (function template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/numeric/complex/get