|
Template class Komplex with type_traits
|
#include <cassert>#include <cmath>#include <iostream>#include <type_traits>#include "komplex.tcc"

Go to the source code of this file.
Classes | |
| class | Komplex< T > |
Functions | |
| template<class T > | |
| std::ostream & | operator<< (std::ostream &s, const Komplex< T > &rhs) |
| template<class T > | |
| Komplex< T > | operator+ (T lhs, const Komplex< T > &rhs) |
| template<class T > | |
| T | abs (const Komplex< T > &rhs) |
| T abs | ( | const Komplex< T > & | rhs | ) |
Addiert zu einer reellen Zahl eine komplexe Zahl
| [in] | lhs | relle Zahl |
| [in] | rhs | komplexe Zahl |
lhs + rhs | std::ostream& operator<< | ( | std::ostream & | s, |
| const Komplex< T > & | rhs | ||
| ) |
Ausgabeoperator fuer die Klasse.
| [in] | s | ein beliebiger Ausgabestrom |
| [in] | rhs | die auszugebende Instanz |