Difference between revisions of "cpp/numeric/complex"
From cppreference.com
m (r2.7.3) (Robot: Adding de, es, it, pt, ru, zh) |
(both c++11 and c++03 standards define generic std::complex) |
||
Line 5: | Line 5: | ||
{{ddcl list item | num=1 | 1= | {{ddcl list item | num=1 | 1= | ||
template< class T > | template< class T > | ||
− | class complex; | + | class complex; |
}} | }} | ||
{{ddcl list item | num=2| 1= | {{ddcl list item | num=2| 1= |
Revision as of 09:16, 23 April 2013
Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<complex>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >template< class T >
class complex;
</td>
class complex;
<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >template<> class complex<float>;
</td>
<td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >template<> class complex<double>;
</td>
<td > (3) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td >template<> class complex<long double>;
</td>
<td > (4) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
The specializations std::complex<float>, std::complex<double>, and std::complex<long double> are literal types for representing and manipulating complex numbers.
The effect of instantiating the template complex
for any other type is unspecified.
Contents |
Member types
Member type | Definition |
value_type
|
T
|
Member functions
constructs a complex number (public member function) |