std::tuple_size<std::complex>
From cppreference.com
Defined in header <complex>
|
||
template< class T > struct tuple_size<std::complex<T>> |
(since C++26) | |
The partial specialization of std::tuple_size for std::complex provides a compile-time way to obtain the number of components of a complex
, which is always 2, using tuple-like syntax. It is provided for structured binding support.
Contents |
Inherited from std::integral_constant
Member constants
value [static] |
the constant value 2 (public static member constant) |
Member functions
operator std::size_t |
converts the object to std::size_t, returns value (public member function) |
operator() (C++14) |
returns value (public member function) |
Member types
Type | Definition |
value_type
|