On this page
std::tuple_element<std::complex>
Defined in header <complex> |
||
---|---|---|
|
(since C++26) |
The partial specializations of std::tuple_element
for std::complex
provide compile-time access to the underlying real and imaginary number type of a complex
, using tuple-like syntax. They are provided for structured binding support. The program is ill-formed if I
>= 2.
Member types
Member type | Definition |
---|---|
type |
T |
Example
See also
Structured binding (C++17) | binds the specified names to sub-objects or tuple elements of the initializer |
(C++11)
|
obtains the element types of a tuple-like type (class template) |
(C++26)
|
obtains the number of components of a std::complex (class template specialization) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/numeric/complex/tuple_element