Template class Komplex with type_traits
komplex.h File Reference
#include <cassert>
#include <cmath>
#include <iostream>
#include <type_traits>
#include "komplex.tcc"
Include dependency graph for komplex.h:
This graph shows which files directly or indirectly include this file:

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 >
abs (const Komplex< T > &rhs)
 

Function Documentation

◆ abs()

template<class T >
T abs ( const Komplex< T > &  rhs)

Definition at line 124 of file komplex.h.

Here is the call graph for this function:

◆ operator+()

template<class T >
Komplex<T> operator+ ( lhs,
const Komplex< T > &  rhs 
)

Addiert zu einer reellen Zahl eine komplexe Zahl

Parameters
[in]lhsrelle Zahl
[in]rhskomplexe Zahl
Returns
lhs + rhs

◆ operator<<()

template<class T >
std::ostream& operator<< ( std::ostream &  s,
const Komplex< T > &  rhs 
)

Ausgabeoperator fuer die Klasse.

Parameters
[in]sein beliebiger Ausgabestrom
[in]rhsdie auszugebende Instanz